Add config saver thread that saves the config automatically in a constant interval