Change StateMachine to TransitionMachine
Rename existing work to be in line with the planned API