Modified interface ExPendingCommandFactory2 and usage to create and sync
to lists of pending commands.

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