Added method inNextState to interface PURCommand to support deriving a
pur command in its nexts state. E.g. undo after pending.

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