Fix #74 - remove explicit port numbers from sockjs urls when not necessary (thanks to @nicholasbs)