Move worker management code over to clojurescript.