Merge "Add new StateMachine constructor with name and handler params." into jb-mr2-dev