IMAP compression

This should be everything necessary to implement IMAP compression except for actually sending the command & starting compression. Let me know if you need me to change anything.