channel: add peer registration
channel: align opaque function calls with new channel_worker
dgram: add helper functions to support new channel_worker