@ 4integration:
I didn't put JSON.lua in that directory, so that might just be it, I just uploaded it like the other files. I didn't get any arrors on the require part, so it seemed to load ok. I will try it again, I just wrote my own small concatenation to create a JSON string, snd was now working on the other end, displaying the events using angular.js.
I will give it another try, thanks for your reply

My framework is now shaping up, I implemented 3 (actually 4) things now. The first is sending out events for all zwave devices that are directly controlled by the Vera. That way my central component on node.js will know those statusses. Works quite will, except for Duwi dimmers, they don't report back at all if I manually change the lights.
The second is updating the display values of devices such as temperature and power devices. They get updated every few seconds or so. The third one is sending out direct command for some devices, in my case a few switches and shutters that I control from my arduino devices. Here I didn't use the events only, but implemented the actions per child device. A fourth function I implemented only for making sure both controllers (Vera and my node.js based solution) stay in sync, which is an inform request over MQTT, which leads to the vera status of all devices to be sent over MQTT.
Directly switching on devices on vera I still do via HTTP, as long as the LUA implementation of MQTT client is still not asynchronous (which I feel might be the case forever).
As I'm working on both node.js, angular.js, learning LUA and learning about the vera, and also building the arduinos and my raspberry pi, it might be a while before it all works the way I want, but I'll try to copy a still very rudimentary version of the plugin asap.
Av