Added getAllStates and getState method in StateMachineMetadata interface

Meanwhile, rename getStateSet to getDeclaredStateSet; rename getState
to getDeclareState.
Implemented getAllStates and getState(stateKey) methods in StateMachineMetaBuilderImpl