StateMachineBehavior for CakePHP.