utils: pagination: Make prev and next page wrap around
utils: pagination: Make prev and next page wrap around

When at the beginning or end of the results pages, have the previous and
next page links link to the start and end of the pages list.

Signed-off-by: Andrew Clayton <02e0a999c50b1f88df7a8f5a04e1b76b35ea6a88@digital-domain.net>

ac000/fcgi_app_core,ac000/fcgi_app_core