Added ability to leave a channel, and fixed protocol errors when joining channels