Making intermediaries fix requests.
Rewrite of HTTP headers section.  Fixes #194, #166.