Allow SC.State's to disallow a state transition.

Added a stateCanBecomeExited function to SC.State. During
SC.StatechartManager#gotoState, all states that will be exited will have
this function called. If any of them return NO, the state transition will
be canceled.