Added session package and secret key. Refactored app.js and routers.