Philips hue, base library speed improvements and bugfixes