Refactored common logic of trim- and unwrap tool into
RepetitiveCanvasTaskTool.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>