Added transaction factories for undo- and redo transaction handler. Each
factory gets their respective scope and forwards this scope for their
respective transaction handler.

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