- Fix code to accept input with spaces before and after values
- Change get_*_id functions to return an exception if * does not exist
- Use hostgroup_exists to find out if a hostgroups exists