Pull in state machine implementation pieces from vumigo library.