Polish chat input.

This fixes the UI and code quality issues that I had with the "new" chat input and adds it to C&C.
It also knocks another TODO off the list of prerequisites for both #3315 and #2243.

This removes the "toggle team chat" preference and implements the behavior agreed on in IRC: team chat is selected by default, and the player can switch between modes using or by the button.