fixes #6216, #4416 - avoid foreign key errors when deleting some objects in use
fixes #6248 - API V2 return object for POST/PUT/DELETE should *not* include root node
fixes #6267 - singularize of HostClass and HostgroupClass is wrong
Merge remote branch 'origin/develop' into develop