get switches for gui using devices.getswitch() method. Commented out until getswitch method is written.
Merge branch 'master' of https://github.com/JamesGlanville/GF2
switch access working from gui