Adds history menu on right-click on history arrows

This implements the history menu that has been marked as TODO.

I don't know if that's the right way to do it (it's my first pull request :)). I just want to help, and this seems to be a great project.

Keep up the great work!