re-factored passport code from server.js to lib/services/authentication