Clean up categories and tags, and include pagination.