Improve group name escaping
Add get_memberships_for_subjects() API
get_memberships_for_subjects(): make group detail lookup optional