Added a function to create a number of pages, committing before I experiment with breaking things
Added pagination to category searches