Pagination

Cleaned up `utils.py`.

Made memcache keys finer-grained.