Transition listeners should have access to state machine context

Fixes #33

The transition listeners previously did not have access to the state
machine context.  Any behavior that is performed by the state machine
should have access to the state machine context.