Major improvements to HTTP/1.1 behaviour, error reporting and handling.

This comes with changes to http_response() (no longer returns a result).