compute the server address instead of hardcoding it

This will save us the trouble of editing it to change it for
production and testing.
added location.host
Merge branch 'pr/4'

Conflicts:
	client/openchat.js