Queued State Machine

A state machine that supports queuing any callbacks that are triggered during a callback. Based off Statesman.