Error Handler

* Catch exceptions an return a json represenation as a response body
for errors.