Refactor bearer authentication code out of api/services/passport.js