Add gzip support for transaction archive uploads.

After some fiddling, I realized that I get the same assertion by checking that the entire result decompresses properly and that each part has the expected length.