Implements the dnode protocol abstractly in node.js