feature-mud-rest-api-error-handling

This is my first attempt at a pull request using Git/GitHub, so it could be a bumpy ride - apologies in advance!
Anyway, here is (I think) a change set to add exception handling to the Rest API Controller.
All feedback appreciated.