Move config system to config.py, where I keep looking for it.
Remove some unused imports.