Add (untested) support for multilevel switches.

This also tidies up the ZWave support a little, adds more comments for
the various constants, and fixes some of them.