Share modularization

Moved config for Share doclib actions and advanced search config into a
Share module.