SQL optimized contact_can_see_contact tests

Functions aren't optimized by the query planner. We should use views.
Moved AddManyToGroup view in /contacts

Fix c_can_see_c permission to include declied members & direct admins
Typo in sql function
Enable global search (top right widget) to all