Merge pull request #5299 from pks-t/pks/config-mem-snapshots config_mem: implement support for snapshots