implemented autosave feature

- for prefs only for the moment
- entirely uncoupled preference settings from running settings