Node.js inheritance and multiple inheritance helper.