extracted authentication out of the app.js
Merge branch 'master' of https://github.com/humannsa/nsa