Added the controller for API key

- API key controller added
- apiKeyValidator now searches the database for hostname