Do not allow channel id values above 2^16
Merge pull request #284 from Kreata/master

Do not allow channel id values above 2^16