Lower memory footprint with incremental compression

Previously, we were keeping a 100mb buffer for each file we were
uploading and copying it once.  This resulted in a hefty footprint, as
we simultaneously upload lots of files.

Now, we use incremental compression and keep the write buffer filled
with compressed data.
Add resume support