Cache game history in server.

Here is the patchset as discussed on Skype. Feel free to leave any comment on the pull-request if you want me to change something.