Changed device_groups/attrs over to AJAX.