Implement chat history browsing (Client and Python)

This enables GUI notifications when the up and down keys are pressed in the chat editor. Based on this, we can implement chat history browsing in the Python scripts.
 H-uru/moul-scripts#81