By passing in settings, we can rely on centrally determined settings. We rely on that to switch between a regular settings module (which mostly draws from environment variables) and a test settings modules, which hard codes some safe, test-only values.

There might be a simpler way to do this in the future, so we don't have to think so much about module load order and whatnot.