Node module to run a graph of tasks