client/application.js: move server code to server/