Initial work to conform the API responses to JSON API standards.
Additional refactoring to conform to JSON API.

Refactored initResponse as express middleware so it can be used by all responses, including general default and describes.
Minimized console logging on startup.
Used consistent style for error messages and codes.