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. 
`max_scope` name seems a little misleading to me. I couldn't figure what the max meant in the list of scopes. Perhaps something like `allowed_scopes`?