Modified undo tool to usage ReversibleCommand's for execution.

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