port client compression from the Perl Seco::Data::Range version
tweak debug printing
Merge pull request #12 from square/evan-client-side-compression

port client compression from the Perl Seco::Data::Range version