Paginate notifications

This adds pagination to notifications.

Note that this is based on #79.