added ability to set a hostgroup by matching the hostname with regex

This adds the functionallity to add hosts to hostgroups matching their hostname on a regex pattern.

There is currently only a simple yaml file to create the matching map, this should be moved in the hostgroup section or something.

I think the best place would be if we would add some new fields into the hostgroup UI like in the puppetclasses where you can add match values.