Made document.register sychronous again.
Also, dispatch WebComponentReaddy from document instead of document.body so that a listener can be added before body is available.