Added very basic pagination.

Fixes #22.