Add basic logging.
Basic IMAP implementation.