*: support purging old wal/snap files

Fix #1764
max-old-snap-files?