terminal.py:  Fixed a bug where the cursor would occasionally disappear.  This change should also improve performance ever so slightly.  This should close issue #327 (https://github.com/liftoff/GateOne/issues/327).
terminal.js:  Fixed a bad assignment that was causing things to break in Firefox and IE10.
Lots of JavaScript files had some minor issues fixed related to syntax (code cleanup).