add ability to prune a repo of old content

still needs tests!
for #228
adds pruning tests

closes #228