register channel join and channel leave
Merge remote-tracking branch 'upstream/master'
Merge pull request #7 from andrepl/master

register join/leave commands