Fixes #4596 - Change parent of host group via AJAX

Reparenting host groups requires submitting the form to see the changes
nowadays, this fix makes the host group model inherit all properties
from the parent and show them in real time.
Fixes #7041: fixed incorrect belongs_to mappings

:conditions reference columns from the local (to the relation) table,
while the condition is applied to the remote side of the association.
The condition can be removed, as it's redundant anyway.
refs #6161 - Add test to make sure override is marked on create
fixes #7336 - editing compute resource should not clear existing attributes from the form
Fixes #5692 - correct counts in cached_counters
Fixes #7247 - Add migration and rake task to correct corrupted cached counters
fixes #7221 - do not display areas of the org/loc UI unless view rbac

corrected 'template' to 'templates'
fixes #7314 - Set settings explicitly instead of stubbing Settings
fixes #7213 - exclude plugin permissions from seeds test
Fixes #6903 - html tags in the message when deleting multiple hosts
fixes #7432 - ensure btn with dropdowns do not span across lines.
Fixes #7329 - Correctly validate HostConfigGroup
Fixes #6713: Long names needs to be truncated while listing
Fixed #7020: Validation instead or error when comments in 'audit comment' exceeds 255 characters
Fixes #7038: No error when hostgroup name exceeds 245 characters
Fixes #7139: Subnet name is limited to 255 chars
Fixes #7164: Cannot create a domain that starts or ends with '.'