Added very basic caching for imap server
Work in progress