Added CRUD support for Automate Domains.

- Added support to Add/Edit/Delete Automate Domains. Moved some of the methods to private area and changed existing code that was being used to add/edit namespaces to be used for add/edit of domains.
- Added support to change priority of Automate Domains.
- Added support to allow users to local/unlock domains. This feature is protected by RBAC, so only users that have access to these features will be able to see these buttons.
- Added product features for the new buttons.
- Changed role_allows? method in user model to check for allows_any? feature when a hidden feature comes in.
- Added spec tests to verify, lock/unlock and priority order change features.
- Fixed any broken spec tests in application_helper specs, deleted any AE related spec tests that aren't valid any more.
- Fixed an issue where correct tabs were not shown as inactive tabs on edit screen.

Issue #2045

@dclarizio please review/test.
same here