return error message on _content_to_json exception

add Exception.message to RESTResult returned on exception. add tests
for decorator.