[mms] Abstracted maillog code.

Initial step to implementing maillog data storage via IMAP METADATA ...
although this is going to require a bunch more refactoring since the
current storage model is based on Message-IDs while METADATA is based on
mailbox/UID.
Fix sending full viewport data on every message read
Disable quota output to smartmobile
Don't send implicit poll information to smartmobile