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