Rewrite tags plugin using Jinja2 context manager

Fixes #6
Rewrite paginate plugin to use context processor

This also adds a basic test for paginate to make sure it's not erroring
out in obvious ways.

Fixes #7