Major rework of the resource handling and the node.js api
Update README.md