Add keybindings to go back/forward in history

<alt>P to go back in history
<alt>N to go forward in history

Based on Spandana's patch.

https://bugzilla.gnome.org/show_bug.cgi?id=509029