Add test code using NODE_RED_HOME to find node-red tree.

Permit testing of these node and checking of javascript fragments. I put a couple of minor jshint fixes in too.
-Mark