cli: introducing FiniteStateMachine (1/2)

This patch moves shell state management to the
Deterministic Finite State Machine (DFSA).

Change-Id: Ic3ea3cf7fa82eb82c2323d96231de0a5e1094056
Signed-off-by: Michael pasternak <mpastern@redhat.com>