Implement chat history browsing (Client and Python)

Here are the python scripts that implement chat history browsing. You can repeat previous chat messages by pressing the up and down keys.
This requires H-uru/Plasma#416.