Add a core thread that periodically saves the configuration.