Fix serialisation
Add routing
Make server send initial state of document