Update pagination to respect PAGINATION_PATTERNS.

Changed pagination.html to get the URL for each page from the Paginator's
list of Pages. This ensures that the user's PAGINATION_PATTERNS are
respected.