Refactor Workhorse failed request handling
Workhorse has helpers that combine the chores of handling errors during a request: sending a failure response to the client, logging the error and submitting it to Sentry. This MR isolates and refactors these handlers into a dedicated package.