Working through the settings.py options to determine what is in use, and some general cleanup.