Fix collaboration service when using localhost
Fixed the following issues with collaboration and publishing diagrams:
- The web app only used
wss://
(websocket secure), which requires the website to use https. Now it will usws://
if the deployment url uses insecure http (for local development). - Fixed webapp so it defaults to port 8080 instead of 8888 when DEPLOYMENT_URL isn't set
- Fixed server so it loads body-parser before loading routes (otherwise request bodies couldn't be read).