New JSONException

Which returns the error as a json document, which is useful for AJAX errors.
Merge remote-tracking branch 'origin' into hr-json-exception

* origin:
  pom to 79
  pull in Shaun's new amberdb. fix tests
Merge pull request #361 from nla/hr-json-exception

New JSONException