Moved app instantiation script to app.js

server.js is usually reserved for application entrypoint.