Add support for deserializing compressed data

The original c.js library has no support for deserializing compressed streams, so I added code to decompress the stream first before parsing