Ensure we can log message decoding errors from non-ASCII folder names.

Test Plan: Regression test added.

Reviewers: kav-ya

Differential Revision: https://review.inboxapp.com/D636
Reduce test contact sync poll frequency.
Add support for user-provided IMAP settings; refactor auth.