Added test cases, and made error message mutable

Added 16 test cases for HTTP request dispatching, and content-type handling.

Also made it so that app.set('quiet', true) will mute error messages. This is needed so that console.warn()'s don't pollute the test results.