When notifying DTM about changes, pass the range
WIP: Work around cases when deleting a partially created anchor. (Reason unknown, as of yet.)
Move code closer to upstream.
Small fixes

- Removed the (now unneeded) workaround from deleteAnchor()
- Delayed adding the highlight class, so that we do it after physical anchoring