add links to top in history and file view

I find scrolling in the diff view of a commit (or even a long file view for a single file) to be a pain, so I added links back to the top of the view. (They are hidden when inspecting a single file while staging a commit).