Switch to replace if else structure

A nice switch structure on all possible commands.
The ProtocolException does not work yet :-\
Also need to move the handling of the commands to separate functions
Switching by different command classes

OpenZwave does not use the Basic command class anymore.
SetNodeOn and SetNodeOff will not work out of the box.
This code will.
Merge pull request #2 from wburgers/master

Switch on tcp sent command type and other way of turning the devices on and off