Oauth, performance and code refactoring
Include performance timing for IMAP