Added pagination of posts

It's a bit dirty what with not using a template for the pagination
output but it works