Add support for pagination routes

Fixes #19