CURATOR-93 - Added compress() option for transactions.

Would be good to have a test case where the same client creates both compressed and uncompressed data.