StateMachine and partial example

Added a new framework for state machine based agents.
DomWorldStateMachine.java will serve as the tutorial, but is
currently still a work in progress. Compiles clean.