OOP-ified phpHue a bit.

Turned phpHue into a class, so you could use it to control several hubs parallely and other clean up efforts. Sorry for  switching to a different coding style.