add an additional repository config field that allows pruning old package versions

the threshold given is the count of package to keep in the repository