Moved login logic from app.js to userAuthenticate.js.
Merge remote-tracking branch 'extendedmind/master'