Fix delete when the next slide deletes files

When the commit after the slide being deleted removes files, the
deletion process was leaving those files in the working tree as
untracked files. Those in turn broke the rebase which implements the
delete.

The history-rewriting has been rewritten to use git plumbing commands,
bypassing the problem.