Linked bindings to the transaction library.
Added handler for partial writes.
Fixed deflation bug

If you try to deflate an already deflated file, the entire buffer gets
consumed so you must continue to flush the buffer until the z stream
ends.
Testing platform
Fixed buffer bugs, starting to refactor C code for maintainability

Tests now pass