Refactor Bearer authentication code out of services/passport.js