Added pagination helper class

A helper class has been added so that the pagination parameters are
easily calculated based on the number of items in total, the number of
items per page, and the current page setting.