Added pagination for the main page. This could use some work, with skip-to page stuff, and it's not in the util file, but it's something