Switches: fix some bugs. Also cleanup code
Z-Eye Django: prepare SNMPset API