adding functionality to be able to create hostgroups based on subcollectives

as well as add machines to those hostgroups