queue of nodes to detach needs to belong to transition manager, NOT instance
more efficient run loop, and fix for special case where detaching nodes would have no transition manager to register with
renamed scheduler -> runloop and state -> global
tidy up
rebuilt