automatically resizes the noVNC session to fit the browser window, somewhat related to noVNC issue #117
fixed some errors in the logic from my last commit, also some minor indentation fixes
Additional fixes for the code in my previous commits:

 * Implemented correct use of the FBU.bytes variable.
 * Removed the non-incremental update from ext_desktop_size to prevent the
   server from sending extra ExtendedDesktopSize rectangles.
 * The code is now using the 'onFBUComplete' callback from rfb to resize
   the session on reconnect instead of a timer.
Merge branch 'master' of https://github.com/kanaka/noVNC

Conflicts:
	include/ui.js
Merge branch 'master' of https://github.com/kanaka/noVNC
Merge branch 'master' of https://github.com/kanaka/noVNC
Small fix for deducting the correct number of pixels from the height due to
the new control-bar height.
Fixed a bug which sometimes occured on touch devices.
The bug would prevent the viewport from properly changing size.
Added the automatic resize functionality for vnc_auto.html.
Merge branch 'master' of https://github.com/kanaka/noVNC

Conflicts:
	vnc_auto.html
TESTING, TO BE REMOVED
Merge branch 'master' of https://github.com/samhed/noVNC into samhed

Conflicts:
	include/rfb.js
	include/ui.js
	vnc_auto.html
Merge branch 'samhed'