1 1. Use json file instead of dbm to save state on disk. It is small
2 enough to overwrite it completely each time it changes and no
3 need to support cocurrent access
4 2. Check mtime of configuration file and reread it if it changed.
5 Requires some refactoring
6 (log error and continue to use old loaded configuration if new file
7 contain errors. Store new timestamp to watch for further