Replaced client instantiation of history handlers, to being managed by
connection, such that it is ensured that exactly one history handler is
created when a certain kind (class) of history handler is declared for a
pending command state factory.

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