Validate Application Scopes

- add validation to Doorkeeper::Application to ensure that its applications match those in the configuration
- add factories for Doorkeeper::Application and User (this is WIP)