hostgroups need to return :title not name, so...
- factor shared methods
- update lookups accordingly
fix typo