Rework imap connection resilience
Dry up connection logic
Add debugging info
Debug logging
Merge pull request #3 from mystichacker/develop

IMAP connection resuse and resiliency
Merge pull request #4 from market76/develop

IMAP connection resuse and resiliency