Update to work with the new NodeCG API
Merge pull request #1 from Langeh/new-api

Update to work with the new NodeCG API