Unify ChanProcess and ChanBufProcess into one module [WIP]