Completed sosoStateMachine. Does not have all the features of ofxStateMachine, but is good enough for now.