fixes #2219 - Hostgroup ownership is hierarchical
fixes #2278 orchestration test failure
fixes #2250 API v2 add/remove puppetclasses from hosts and hostgroups
refactored fixes #2250 to use join table (host_classes, hostgroup_classes) for adding/removing puppetclasses