Fix request payload encoding json

Fixing transfer encoding of POST/PUT requests (to JSON).

The WebUI accidentally sent `x-www-url-encoded`, but the [Hue only accepts `application/json`](http://developers.meethue.com/7_messagestructureresponse.html). This would have been a non-issue had the Hue SDK sent proper Content-Type request headers in the first place.