Complete refactoring and adoption of new API
Complete refactoring and adoption of new API

Added support for LightSensor
nfarina/homebridge,felixekman/homebridge,dvinc/homebridge,hplato/homebridge,bivab/homebridge,SphtKr/homebridge,DTTerastar/homebridge,nfarina/homebridge,snowdd1/homebridge,patricks/homebridge,dotsam/homebridge,EddyK69/homebridge,travisdoyle/homebridge,nfarina/homebridge-legacy-plugins,chrisi21/homebridge,inonprince/homebridge,thkl/homebridge