Added method getReference to interface CommandStateFactory, which is to
be used by the transcriber similarly to getReference of
DualCommandFactory.

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