Chat command history

Let us also add commands to the message history, so we can easily repeat them with the up and down keys.