Adding new configuraciones to app.js

Following this example for user login;
http://scotch.io/tutorials/javascript/easy-node-authentication-setup-and
-local
minor changes