Close #3.

Use TemplatePaginator class instead of forking paginator module.