REST-39. Add a general runtime exception mapper.

Currently only WebApplicationExceptions are wrapped into JSON and printed but
not for other RuntimeExceptions. This means any parsing exceptions will throw
the dreaded generic 500 message in HTML. Checked exceptions are either
transformed to IOExceptions or there's an explicit mapping.

Reviewer: lsheng, shashir