Refactoring header sending in Response to remove annoying exception

Also add a fastcgi fast shutdown function in order to squeeze a few
more requests from the webserver
Fixing failing tests
Fixing grammar in doc block
Merge pull request #4597 from cakephp/3.0-refactor-header-sending

3.0 refactor header sending