Add tests for the StepIterator class
Rewrite image selection to use StepIterators

OdtDocument.getDistanceFromCursor is no longer used by any code.
Rewrite some cursor move & extend actions to use a StepIterator