added mail fetcher controller and cleaned up imap