factor out auth
Merge branch 'master' of https://github.com/pemami4911/Osprey

Conflicts:
	osprey-dev2/app/routes.js
Merge branch 'master' of https://github.com/pemami4911/Osprey