Only log if logging is enabled.
Add support for ValueAdded and ValueChanged.

For now we are only interested in binary switches and multi-level
devices.
Disable any file creation, i.e. logging and config.
Rename location->loc to avoid JavaScript namespace.
Update the test program to print node values.

Also include some minor output changes.