added ability to purge snapshots by number of revisions