Generates HTML pager buttons/links/whatever