Added polling

The DeviceType will now sync with the relay board to read it's current
state - especially useful if the device is re-started/re-installed.

Did a little tidying as well.