(Bug 4764) Rework pagination to have static next/previous links and hard breaks every ten pages in page count