Implement back/forward and open in new tab

This resolves #1070.
Merge branch 'backInNewTab'