Created graph.each

This will be used by the amdify and other build targets. Also, exported
some of these useful graph helper functions in index.js.