Refactored the hue response handling into a single function.
Added the ability to get the light state.