Implement IMAP logger. Work in progress on POP and SMTP loggers.