DRY TEMPLATE_CONTEXT_PROCESSORS

I'm not screaming, that's just an abbreviation and a constant.
Add simple pagination for libraries list
Only show pagination if needed
Add pagination for projects list
This is stupid
This is better, but still kind of stupid

We'll deal with pages overflow later.