Adding pagination

Setting up pagination. Default is just adding the next and prev
pages to a pagination object on the context. The currentPage
index and totalPages is also on the pagination object.
Merge pull request #366 from doowb/pagination

Adding pagination