library API improvements - DELETE and PATCH; addition of http error codes and exceptions; slight refator; small bugfix
API libraries exceptions improvement, unnecessary endpoint removal
Merged in martenson/galaxy-central-marten (pull request #344)

library API improvements - DELETE and PATCH; addition to John's http error codes and exceptions; slight refator; small bugfix