Added a new abstract MailFolder class and updated ImapFolder to subclass it