made it possible for the editor to initialize with a document to be loaded...
made it possible for the editor to initialize with a document to be loaded from the server thus enabling documents to be opened. Also did some minor refactoring of code and created a route in the backend for fetching a document by id