Group possible rules by service in the UI.

Fixes fedora-infra/fmn#16.