fixes #3960 - wrap APIv2 errors in an "error" node
fixes #2866 - Changing a hostgroup name doesn't update associated Smart Variable matchers
fixes #4188 - api/v2/status incorrectly shows api_version: 1