Initial channels infrastructure

Implementing #11