pruning junk from git-ppr, fleshing out logic

I think git-ppr.sh should work now, but I'm too tired to test it.