Compress attachments before the HTTP proxy does.

fix #480
Few fixes.