Do getValue() of Boolean objects before comparing them

Closes #268.
Merge pull request #271 from kparaju/master

Do getValue() of Boolean objects before comparing them
Fix client handling channels prepended with &
Fix join|part channels prepended with & on socket
Fix error when closing inactive channel
Merge pull request #273 from badosu/fix-&channel

Fix &channel
Merge pull request #274 from badosu/fix-error-when-parting-inactive

Fix error when closing inactive channel
Add list event listening and signalling
Add client side /list command and listener
Set debug to false as default
Set socket.io loglevel based on debug config
Merge pull request #276 from badosu/avoid-locking-with-logging

Avoid locking with logging
Merge pull request #275 from badosu/add-list-command

Add list command
Set connected to false on disconnect

Make leave dialog only pop up when connected
and logged in.
Merge pull request #280 from nrn/master

Set connected to false on disconnect
Fix port mismatch when used behind a reverse proxy

Websockets port is always the same as the static web server port so
instead of having some tricks, this patch simply removes that and uses
`document.location.protocol` for the port.
Merge pull request #286 from BYK/master

Fix port mismatch when used behind a reverse proxy
Ignore IntelliJ files.
Merge pull request #287 from BYK/gitignore

Ignore IntelliJ files.
Changed desktop notifications to support Firefox.

Pretty much everything of the notification handling was redone.
This is tested on Chromium version '32.0.1700.107 (248368)' and
Firefox version 29 and 27 under linux. More testing would be nice.