Allow selecting deflate with Accept-Encoding for streaming clients.

Streaming clients can now use the HTTP Accept-Encoding header
in order to choose deflate compression even with the '/stream' path.
In previous versions the identity (uncompressed) encoding was
always selected for this path.

The '/compressed' path works as in previous versions (it ignores the
Accept-Encoding header).