Pushing first iteration of dat.
Merged Noam's changes
Slight change to reflect modified rnodejs API