Update unit test database dump.
Remove uninformative log statements.
Short-circuit in gmail_download_and_commit_uids when there's nothing to commit.
Make g_msgids call more performant.

Summary:
Previously, we'd load *all* the g_msgids for a given account before filtering
them. This makes sense in cases where the in_ parameter is stupidly large
(which it sometimes can be). But in, say, deduplicate_message_object_creation,
this function is called with len(in_) == 1. In that case, doing this adds
hundreds of milliseconds to the time it takes to commit each message.

Test Plan: Run syncs on beta-mailsync.

Reviewers: spang

Reviewed By: spang

Differential Revision: https://review.inboxapp.com/D307
Generic Condstore syncing, take 2.

Summary:
Christine, Charles,

I extracted the condstore syncing code from D280 and adapted it to the new generic backend.

The code is functional but there's some additional work to do which is out of the scope of this patch.

1. There's some refactoring to do around "crispin_new". Mostly, I'd like to sniff out the capabilities of the server before constructing the CrispinClient. Right now, every non-gmail provider gets a GenericCrispinClient.

2. There's still this bug in ImapClient. Menno told me he was real close to releasing a fix. Should I go a ahead and fork ImapClient temporarily or just wait for the release?

Test Plan: Ran a couple syncs with fastmail + checked in the ImapClient logs that it was issuing the condstore commands.

Reviewers: charles, spang

Reviewed By: spang

Differential Revision: https://review.inboxapp.com/D297
Automatically enable Condstore for servers who support it

Summary:
I needed this patch to test D297. It does two things:

1. Detect and store condstore support when running inbox-auth
2. When starting a sync choose the right monitor class

Test Plan: Tested by running a full sync + polls on a yahoo and fastmail account. Used the ImapClient logs to check that the right commands where issued.

Reviewers: charles, spang

Reviewed By: spang

Subscribers: mg

Differential Revision: https://review.inboxapp.com/D302
fix code rot
fixed bug in threading code
forgot debug printf
only generic accounts have a supports_condstore attr
Basic cache.
Also, app logging for debug.
[SCHEMA] Only load reqd. Account columns.
Fix sync_start_time.
Remove sync_end_time.
Include #folders, #killed folders in accounts page.