OK, even though I don't expect bad behavior I went ahead and added everything to newEdits first. I did change `addBeforeID` to not add a `beforeID` to `elementDelete` edits. Only one test had to change as a result of the reordering of the edits.

The way the code works now, the list of edits should be nicely predictable.