Improve test coverage for settings.py

These are mostly smoke-tests ("turn it on briefly, see if any smoke
comes out"), but they will be helpful for the eventual Python 3
migration.
Add a .coveragerc
Use with statement instead of try/finally
Improve test coverage for timelog.TimeWindow
Improve test coverage for timelog.TaskList