1st working model of toggling device state via the web interface YAY!!