add missing index.py, support pagination

support pagination based on GitHub-like scheme:

1. support paginating by `page` and `per_page`
2. use `Link` headers to return links
3. use `X-Pagination-Info` headers to return additional pagination information