fixes #2250 API v2 add/remove puppetclasses from hosts and hostgroups