Some changes to diff & hist links

* Diff link should check if there is something to diff against
* Added "prev" and "cur" links, that will be used in history-view
* Removed formatDiffHistPipeList in favor of 4 methods to fetch specific link

Change-Id: I40fef27d21f385905dfbf0b81fcc472aa9c8927a