Feature 3337 - support for groups and conditions

See http://projects.theforeman.org/issues/3337 for more details