Tweaked how config is treated in application.py .

config is now set to None initially, and set to a /copy/ of default_config if the config file couldn't be read. This copy is then written out to the config file.