Fix message compression again; add SOA support

Adds support for SOA queries, as requested in GH #3

Also fixes message compression for real this time.