Added interface ExPendingCommandFactory to support deriving a history
handler upon command creation.

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