Some additions to the fetcher.

Make pruning and gc optional
Add option to merge
Some cleanups