Issue #5: REST API responds with HTML instead of JSON or XML for certain error conditions

When certain kinds of 500-class errors occur on the Twitter API, the exception thrown is not of the same content-type being requested by the client.