Migrate SendMessage UI Logic

Moves message display logic into chat.ui.js. Commands are stored in
array and lookup format.