Reduce amount of error details returned in production

Exceptions in Origam Server code are sometimes sent along with the stacktrace to the browser. This is not desireable behavior. The stacktraces should only be sent when in development.