Fix links in new window by setting the base URL correctly
Update styles in the new window whenever they change in the parent.
This is needed if the application mounts new React components inside
the new window (React updates those styles on-demand instead of
loading them at start).