config groups UI: Added config-groups CRUD functions, locators and tests

Fixes some bugs related to config_groups tests

config groups UI: remove the unused import
Extend method LifecycleEnvironment.path

Client code such as the following can now be written:

    >>> LifecycleEnvironment(organization=5).path('organization')
    'https://example.com/katello/api/v2/organizations/5/environments'

Add tests for this new method. Refactor existing tests so as to reduce the
amount of boilerplate testing code.

Refactor method `ActivationKey.path`, and make its implementation simpler.
Merge pull request #1166 from Ichimonji10/le-path

Extend method LifecycleEnvironment.path
Drop generic exception handling for CLI tests

Use the specific CLIFactoryError exception when handling CLI
factories exceptions
Enable CLI Org test_bugzilla_1078866
Merge pull request #1168 from elyezer/drop-generic-exception

Drop generic exception handling for CLI tests
Merge pull request #1156 from kbidarkar/config-groups

config groups UI: Added config-groups CRUD functions, locators and tests
Added test for removehostcollection for activationkey
Updated hostgroup test with Factory and added few -ve tests
Merge pull request #1170 from sghai/hostgroup

Updated hostgroup test with  Factory
Updated gpgkey tests with Factory and using api's for dependent entities
updated test_key_associate_20 test with api's

Updated create/delete/update tests with factory

Updated create/delete/update tests with factory

moved session statement after api calls and collapse tests
Merge pull request #1161 from sghai/gpgkey

Convered GPGKey tests to use Factory and APIs for dependent entities
Add a test targeting BZ 1097054

Assert that it is not possible to update an activation key's max content hosts
to a string value. The test succeeds, which indicates that the bug has been
fixed.
Add API tests for LifecycleEnvironment and GPGKey

Add several API tests which target the following URLs:

* `katello/api/v2/gpg_keys`
* `katello/api/v2/environments`

Many tests were already in place for GPG keys. However, there was no test for
issuing a GET to `katello/api/v2/gpg_keys`. This commit fixes that. In contrast,
there were no tests for lifecycle environments, and this commit adds a basic set
of HTTP POST and GET requests for lifecycle environments.
Fixed the test as per the comment
Fixed the failing repository tests
Fixed validation error locators for foreman entities
Fixed the failing repository tests as per the comments
Merge pull request #1175 from Ichimonji10/api-tests

Add API tests for LifecycleEnvironment and GPGKey
Merge pull request #1176 from Ichimonji10/bz-1097054

Add a test targeting BZ 1097054