change how errors are returned by rest-api
change how errors are returned by rest-api

BREAKING CHANGE:
errors are now returned as a json: {"error": "error message"}
errors were previously returned as text

cheminfo/rest-on-couch,cheminfo/rest-on-couch,cheminfo/rest-on-couch