Start of full API access

This adds group and scene functionality, and improves on the light API a little. I've also added some group commands to the CLI script. There is obviously more to do, such as implementing schedules, sensors, etc, but this is a good amount of new functionality.