Rebase lost commit https://github.com/tlivings/kappa/commit/2d43517cac5a2204d7b1fc9316de7456600d8f0d so this readds it.

Modified errors test to have longer suite timeouts for mocha.

Added unit test for content type other than application/json.