(Issue 655) Memberships Libraries

* Added pluggable search filter for libraries
* Improved authz logic in groups
* Added ability to lazy-build libraries