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