AuthorizationCode model added.

- New model
- admin page support extended.
- Support methods for models
Initial support for "Authorization code" and "Implicit" flows.

- New authentication methods (WIP)
- Token view now returns only JSON or XML

TODO: Complete error handling, currently exceptions are thrown and no errors are displayed for user-agent.