Support compressed data downloads

Support downloading of compressed attachments if that
attachment can be compressed as determined by the
att_encoding_info=true doc query parameter