Update filter registry code This updates the git filter registry to be a little cleaner and plugs some memory leaks.