Make main usable for testing connection

Conflicts:
	phue.py
Merge pull request