USERGRID-2670 restore JSON formatted error responses that we broken by recent error handling changes.
Merge pull request #255 from apigee/USERGRID-2670-error-handling-fix

USERGRID-2670 restore JSON formatted error responses