Add pagination to blocked users page

Also create generic qa_db_selectspec_count function for modifying a
selectspec with COUNT(*).