Producer compression

Merged master, made CI build pass.  It still lacks a test.  It should probably go in producer_integration - though I'm not opposed to some mocking tests in test_producer.