Add simple Promise and WorkerQueue implementations
Partial refactor of graph to WorkerQueue