Consolidate config.py with models/config.py
The Settings class and helper functions in config.py (along with their defaults in defaults.py) need to be consolidated with models/config.py.
Additionally, defaults for the management_repo
configuration option need to be set properly (currently the directory is not set).