buffer_zlib: try to inflate all passed data, save what cannot be inflated right now.

This fixes an obscure inflation bug when the inflated data could not fit into size*6 store buffer.
http: assume files ending with .gz, .Z and .tgz to be compressed despite the content-type; check inflate errors.