TS-621 Allow caching of empty docs (currently only if a header
Content-Length: 0 is in the response). New config option is named
proxy.config.http.cache.allow_empty_doc, and is disabled by default.

We are aware this doesn't fully fix the problem, but is "good enough"
for now.

Reviews and minor cosmetic cleanup changes: James and Leif.