Initial version of nodejs integration

I made a mess with the inheritance, the right lines when class B inherits from class A are:
B.prototype = Object.create(A);
B.prototype.constructor = B;
See:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript