added pagination. fixes #559
Merge pull request #579 from edsu/t559-paging

added pagination. fixes #559 ; Unfortunately I need to merge this now to make life easier.