Make GmailCrispinClient.g_metadata() return namedtuples.

This is exactly the sort of place where using a namedtuple makes the
code cleaner.
Use numpy formatting for expand_threads() docstring.
Set log level via the config file.

Eventually we probably also want to be able to override this at the
command line.
Lint formatting fixes for a lot of files.