StateDevice.onStateChanged - Static Delegates/Send Instance
Added onStateChanged static method so cutom code can be run
	on all devices
OnStateChanged now passes the device instance in the named
	argument, device