Pagination.

Closes #35 and closes #72.