Added interface TransactionHandlerFactory which is supposed to replace
usage of TransactionHandler classes as factories.

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