Refactoring directory structure for deployment in Heroku