feat(fsm): Add finite state machines for components

A port of fsm of ash framework to ashley

perf(fsm): Avoid allocation while changing state

refactor(fsm): change fsm module to work with 1.1.0 changes