Refactor authorties view.

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