[StateMachine] changed the StateMachineBuilder::__construct() method to receive any StateMachine object as well as the state machine ID
[test] added a test for the StateMachineBuilder::__construct() method
[Composer] added the minimum-stability element to set it to "dev"
[StateMachine] introduced the event system to dispatch system events to listeners