Fixed a race condition on load

Now requesting the document when the editor loads instead of looking at connectionCreated. This is because someone could send us the document before we have created the editor and are listening for the initial document.