Creates and registers a StateMachine described in Xml.
This allows reconfiguration of the StateMachine
without changing any code, as well as making it
easier than creating all the State
instances and registering them with the
StateMachine
at startup time.
Inject the StateMachine
into the PureMVC apparatus.
Creates the StateMachine
instance, registers all the states
and registers the StateMachine
with the IFacade
.