Fix dropbox redirects to preserve docids
Clean up and comment initShareJS
Remove trailing WS
Move initShareJS after initAce visually
Remove useless sharejs object from toplevel
Use 'docid' name consistently
Make ShareJS behave sanely when attaching to a document and populating editor
Require a title to be passed to ShareJS.open()
Attempt to close ShareJS doc when leaving.