Added retry logic to IMAP receiver connection for common nondeterministic responses from the IMAP server.
Added retry logic to polling loop for common nondeterministic responses from generic servers. Ref #74.