Merge remote-tracking branch 'remotes/origin/pr/36' into passport

Conflicts:
	main/index.js
	templates/common/_bower.json
	templates/express/server.js
	templates/javascript/app.js
Merge remote-tracking branch 'remotes/origin/pr/36' into passport
merged and fixed against DaftMonk/passport
fixing more problems from the merge

fixed syntax errors to pass jshint, refactored some of the templates
Merged duplicate changes made to get passport branch working.

Conflicts:
	templates/express/config/passport.js
	templates/express/index.js
	templates/express/mongo/user.js
	templates/express/session.js
	templates/javascript/app.js
	templates/views/html/partials/navbar.html
refactored server code to have more consistent style

and cleared out some legacy code from angular-passport
updated db to export the db connection
removed whitespace
refactor api to increase consistency
auth service now uses promises
Add a session get method for checking the users status
fixed show method on user controller

now returns profile from user model,
also improved style of user model for readability
removed unnecessary if statement
added name field to user model
fixed client side validation and cleaned up partial templates
update comment
changed the filenames of Services to uppercase, was case sensitive
added angular routing check to see if a route requires authentication
added settings page that allows you to change password

also demonstrates restricting routing to only authenticated users
configure routing

added route for changing password,
middleware for setting user cookie,
removed session status