Make main usable for testing connection

Conflicts:
	phue.py