Implement a real pager on the build page

See TRAC-2975