Made a small correction HistoryHandler as to usage of type parameter.
Added usage of ExPendingCommandFactory and HistoryHandler in connection.

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