Simpify rest project resource tests
Adds an ExceptionMapper to Rest project.

* Sends JSON responses to exceptions.
* 405s (e.g. GET not POST) are still served as Jetty HTML error pages.
* Turns uncaught exceptions into 500 server errors.
Handle exceptions with null messages.
Merge pull request #811 from sjcorbett/rest-backup

Rest API error responses