Changed the folder structure and added some code to work with Heroku.