*: support purging old wal/snap files

Fix #1764
Or just "Number of old snapshot files to retain"