Converted IMAP to a class, to keep a session. Also, added a -mailbox- database..