Add Johannes's very helpful fixup-rebase script

I also embedded his notes as a header, since they explain the script's
purpose very well.