References #167, added javascript and ajax endpoint.

Both should later on be used with correct field. The logic will depend
on a field name, the javascript will modify how group selection behaves
by changing users select field (bringing in the data according to groups
being selected).