Finished first revision of support for ExPendingCommandFactory in
connection.

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