Use hostname instead of host on javascript webrtc bridge client code

This prevents it from appending the port number when a request is made from
the HTML5 client
Merge pull request #468 from antobinary/webrtc-hostname-change-new

Use hostname instead of host on javascript webrtc bridge client code