Oauth trust levels

This creates three 'trust levels' for OAuth applications based #107. It also allows a `max_scope` to be set for each application, allowing the types of scopes requested by them to be restricted. 

When an application asks for a scope or uses a grant type it is not allowed to use a `400 Bad Request is returned`.

I'm working on adding an admin interface for applications. 
perhaps change the wording from bad request to unprocessable entity to match the status code.