Improve separation of concerns for API
Merge pull request #32 from alphagov/better-api

Improve separation of concerns for API