3.0 refactor header sending

 Refactoring header sending in Response to remove annoying exception

Also adds a fastcgi fast shutdown function in order to squeeze a few
more requests from the webserver.
This might also be useful in the IntegrationTestCase if people run into issues where they are sending headers by accident.