Implementation of chunked transfer.

This was requested in https://github.com/savonet/liquidsoap/issues/82.