[bug 1108604] Tweak paging links in hb data view

* change older/newer -> prev/next
* add first and last links
* moved code to a macro
[bug 1108604] Add sort and display ts better in hb data view

* add sortby id and sortby updated_ts
* fix the display of timestamps so it's readable