Added support for pagination of index pages. Resolves issue #17.