Writing config

Issue #235 resolved
Benjamin Cordes created an issue

for webUI the ability to write config files is needed. Suggestion is that the old file will be copied as backup: config.json.bak1, config.json.bak2, etc. and the old file name is preserved and updated.