Update field lookup in CLI content views tests

Looks for the updated lifecycle-environments field instead of
environments.

Correctly handle password for test_cv_roles_admin_user_negative.
Update CLI test_medium tests

Update field lookup for operating systems.

Also improve formatting.
Merge pull request #1613 from elyezer/update-cli-cv-tests

Update field lookup in CLI content views tests
Merge pull request #1614 from elyezer/update-cli-test-medium

Update CLI test_medium tests
Update CLI test_user

Use stubbed decorator instead of unittest.skip decorator to avoid the
need of handling the unittest import.

Wrap all factories call with a try/except block.

Update test_negative_delete_user_1 because now make_user factory does
not return the password.

Use unicode when searching for a user as the login may contain unicode
characters.
Merge pull request #1616 from elyezer/update-cli-test-user

Update CLI test_user
Skip fix_db_cache settings test due to a bug

Due to http://projects.theforeman.org/issues/8053 foreman-tasks are
being killed and if the fix_db_cache setting is true foreman-tasks does
not start and make the system not behave as expected.
Make ActivationKey.read_json poll upon getting 404

Make method `ActivationKey.read_json` poll the server up to five additional
times upon receiving an HTTP 404 response. As per an IRC conversation with
@thomasmckay, bugzilla bug 1127335 will not be fixed, and clients **must**
resort to polling the server to determine whether a 404 is valid or not.

Several tests in module `test_activationkey` fail, but due to unrelated reasons
(that should be investigated!).

    $ nosetests tests/foreman/api/test_activationkey.py
    InsecureRequestWarning)
    ......FFF...................
    ======================================================================
    …
    ----------------------------------------------------------------------
    Ran 28 tests in 86.375s

    FAILED (failures=3)

Fix the one remaining failure in module `test_multiple_paths`:

    $ nosetests tests/foreman/api/test_multiple_paths.py -m ActivationKey
    InsecureRequestWarning)
    .S....SS
    ----------------------------------------------------------------------
    Ran 8 tests in 38.545s

    OK (SKIP=3)

Fix several Jenkins failures. Target #1578.
Merge pull request #1617 from elyezer/skip-ui-settings-test

Skip fix_db_cache settings test due to a bug
Merge pull request #1618 from Ichimonji10/activation-key

Make ActivationKey.read_json poll upon getting 404
Added multi-threading support for API

Before
------
Ran 759 tests in 1608.000s

FAILED (SKIP=99, errors=25, failures=10)
make: *** [test-foreman-api] Error 1

After
-----
Ran 742 tests in 563.268s

FAILED (SKIP=99, errors=103, failures=37)
make: *** [test-foreman-api] Error 1

Most additional errors are 500 Server Error