XD-582: Support named channels in local mode

**Not ready for merge** (even has compile errors)

Just seeking feedback here, to know if I'm on the right track. I'm interested in knowing how to handle cleanAll().