Removed direct hardcoded dependence on model history management in
connection by depending on history handlers.
Added hardcoded derivation of history handler based on type of interface
of pending command factory in connection.

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