Environment configs added and refactored app.js
routes.js splitted