Detect port properly in vnc_auto.html when used on port 80 or 443.

Browsers (such as Chrome) don't report port numbers in window.location.port when
used on standard ports such as 80 and 443. This causes vnc_auto.html to not
automatically find the port as it should.

This simple change checks if window.location.port is blank, and sets port as
appropriate from the name of the protocol in use.
Add default port logic to include/ui.js

Correctly identifies the use of http/https and forces the value of port to 80 and 443
respectively, as in this situation window.location.port is blank.

This is patch includes the same changes as made in vnc_auto.html
Use port in UI.initSetting in include/ui.js

Because apparently it is simple enough for me to forget to include in the previous commit.
Merge pull request #245 from wrouesnel/vnc-auto-fix

Detect port properly in vnc_auto.html when used on port 80 or 443.