Refactoring backend

The purpose of this PR is cleaning the backend, and providing a more restful oriented API. Also, the routes are now being exported their respective modules, I think its cleaner and more intuitive than having all the routes placed at once in the app.js file.