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.
Set FBU.bytes to 1 in encHandlers.COPYRECT

FBU.bytes must be set before return false to indicate that the FBU
header has been read. If not set then "if (FBU.bytes == 0) { ..}"
in framebufferUpdate will be entered and the copyrect header will
be interpreted as a new FBU leading to a "unsupported encoding"
disconnect error.
Merge pull request #249 from Medical-Insight/copy-rect-bytes

Set FBU.bytes to 1 in encHandlers.COPYRECT
rfb.js: set FBU.bytes before waiting from RRE.

Also, in COPYRECT, set FBU.bytes to the number we know we will need.
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.
Re-fix pull req #245:

* Must declare port variable.

* Must look for https first, then http.
Merge pull request #252 from astrand/port-80-443

Re-fix pull req #245:
Merged the control-bar and the status-bar together.
Also added a popup with the status text.
Removed duplicate of .noVNC_status_warn from the stylesheet.
Made the control bar thinner by removing the space below and above the control buttons.
Changed the color and weight of the status text to white and bold.
Moved the popup_status_panel to the front.
* On low resolution devices the status text is now justified to the left
  button group instead of centered.
* On low resolution devices the padding towards the edges of the screen of
  the left and right button groups are now removed.
* Since the status_bar was merged into the control-bar the actual status_bar
  element became redundant and was therefor removed.
* Improved the style of the control-bar when there is an error or a warning.
* Implemented a fix so that vnc_auto.html works as intended with the improved
  screen real estate patch.
Added Copyright information to all modified files.
Display the desktop name in the document title
Merge pull request #280 from samhed/documenttitle

Display the desktop name in the document title
Merge pull request #276 from samhed/screenrealestate

Improved use of screen real estate
Make noVNC follow the RFB protocol and keep only one outstanding
framebufferUpdate request at a time.