Fix previous and next page links
Merge pull request #141 from theodi/fix-api-paging

Fix previous and next page links