dictionary: refactor to support trailing quarter block as dictionary; only setting one gzip header/trailer.
refactor and bugfixes for deflater usage and error handling. using sentinal entry to indicate end of stream.