Added stream-to-array package.
Added gzipOptions test for buffer mode.
Changed streamThreshold function to use stream-to-array
Changed buffer mode to use zlib.Gzip as a steram instead of the convenience method.