Automatically load head assets

Previously assets in the head of the preloaded page wouldn't
be loaded, as only the body was copied.  After this change,
any tag in the head of the previous page, not in this page,
is added to the head after the switch.