How to build a Node.js script to re-write history. Pre-requisites: Familiarity with git rebase --interactive.