Chat infrastructure

Preparing for a full set of chat commands.