Replace id= with class= for the chat panel.

This is in preparation to support multiple tabs, which will provide a
separate chat tab per running game.

Signed-off-by: Matt Mullins <mmullins@mmlx.us>
Refactor chat button click-handler to be a closure.

This will support having multiple handlers, one per game, in the future.

Signed-off-by: Matt Mullins <mmullins@mmlx.us>
Add generalized arguments to chatsubmit_click

These parameters are used as a closure, so that the generated handler knows
which game it is attached to.

Signed-off-by: Matt Mullins <mmullins@mmlx.us>
Create a new tab for game-specific chat.

Signed-off-by: Matt Mullins <mmullins@mmlx.us>
make per-game chats resize with the window like global chat.