of course the revert of the revert of the revert to make things work

--HG--
extra : amend_source : f9befd1171d49352cec5c9225682c5caa8d846ad
Store copy of registering document principal in the registration. Use it for spawning ServiceWorkers