Use same hostname and port for WebSockets when non-local.
Merge branch 'same-host-and-port' into ng-showbot