lower case constants & add host to context

Conflicts:
	main.py
use host in templates for socket urls