Remove dependency on express/connect

Instead of listening for the `header` event, which is something
express/connect provides, hijack `writeHead` which gets called
implicitly (or explicitly, if the user wants) on every request.

Passed all tests locally. Sorry about that one whitespace diff