Added infrastructure for executing any (reversible) command (forward
only).

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