Added a channel class to make general messaging code for the binding.
Added sequence for unique id generation. Ofc it would be very easy with yield, but that is not available on every platform.