Bug 1053674 - Remove subclass of StateMachine and use task queue directly.  r=cpearce