WS API error codes refactoring. Closes #133

Context injection behaves weirdly inside Jetty, so is commented out and
all error descriptions are JSON only as a consequence.