improve Faye JS loading and make chat room use hostname instead of 'localhost', enabling deployment.