Refactor authorities view.

Refactors authorities view:

- Reduce catalog queries
- Make it better customizable regarding catalog queries

/cc @maethu