Fix pagination for people/guid/contacts

Fixes #5291 and uses Bootstrap's pagination.