Add transaction manager

Signed-off-by: Grzegorz Halajko <gh@linuxpolska.pl>