Fix issue #326: correct handling of shift key

When shortcut modifiers (modifier keys such as CTRL, which do not participate in
composing character input) are pressed, we try to suppress the keypress
event, as browsers do not reliably generate it. This means that
subsequent key events are decoded only based on the keydown event.

Due to a type error (comparing a string to a number), shift was
mistakenly treated as a shortcut modifier, preventing text input which
relied on shift, such as _ and %, from being generated.
Merge pull request #329 from Medical-Insight/fix-shift-chars

Fixes #326: correct handling of shift key
Add support for TightVNC auth type
Removes the connection timeouts to enable slower clients, connections or servers.
Merge pull request #336 from samhed/removeConnectionTimeout

Remove the connection timeouts
Merge pull request #327 from devicenull/master

Add support for connecting to TightVNC servers