State event callback

Addition of the state event callback fired when an event occurred inside a given state.
This is particularly useful to react to auto-transition's events.