Moved app.listen to the end of the server.js file
Refactored backend code to be more modular
Refactored angular code
Split content in templates