implement x-snappy-framed input stream and output stream.
https://github.com/dain/snappy/issues/16