Collapse sidebar with css selector
Fixes #152
Create helper functions for initialization methods
Send init commands when connection is successful

Initialization commands are sent when we are sure that
the password has been accepted and that the init has been
processed by the weechat relay
Work around a WeeChat protocol inconvenience

Until WeeChat sends a confirmation for init we have to assume
that the commands will be received synchronously even though
they are sent asynchronously
Decode and encode array directly without for loop
Merge pull request #154 from torhve/better-string-decoding

Decode and encode array directly without for loop
Whitespace fixes, some {} blocks
Merge pull request #156 from lorenzhs/fixwhitespace

Whitespace fixes, some {} blocks