Refactor models into json definitions
Use app.middleware to register handlers
Allows email/username for login
Add relations to oAuth models
Fix the JWT parsing
Export authenticate as a factory to middleware chain
Add refresh token generation
Update deps
Merge pull request #6 from strongloop/feature/componentize-oauth2

Feature/componentize oauth2