AJAX API endpoints for view user groups

Implements #29