Added a script to repair our history if we've started to creep out of co...

...nsensus.

Actually, I don't think this should be merged quite yet.  Needs a little cleanup to be completely portable, and needs some documentation.