Add pagination to the test history page. The maximum number of pages is ~10 (even if more results are available).

Summary:
Implement pagination in the UI

Revert to inefficient pagination in backend

Add a test for pagination

Reviewers: cramer

Reviewed By: cramer

Maniphest Tasks: T17639

Differential Revision: https://tails.corp.dropbox.com/D66560