Move handling of success and error responses into API service
Refactor API service
Fix references to Model in application controller functions
Add missing semicolon
Switch to sending object as response "{ data: [] }"
Fix whitespace
Merge remote-tracking branch 'origin/feature/category-directive' into feature/category-directive