fixed compression issues, added relevant tests
tests for gzip and snappy compression
Merge pull request #32 from stealthly/compression

Fixed compression issues, added tests