Automatically profile with cProfile

Make most test tasks in the main makefile collect profiling information. For
example, executing `make test-foreman-cli` will cause a
`test-foreman-cli.pstats` file to be generated. This file can then be
manipulated using any tool that understands the cProfile data format. For
example, Run Snake Run can open the file directly, gprof2dot can generate a call
tree in DOT format, and pyprof2calltree can convert the data into a format that
kcachegrind can understand.

Sort make file variable names alphabetically.
Changed the resolution to 1920x1080 for virtual-display
Merge pull request #1768 from kbidarkar/change-resolution

Changed the resolution to 1920x1080 for virtual-display
Merge pull request #1766 from Ichimonji10/cprofile

Automatically profile with cProfile
Fixes the UI life-cycle environment test cases for UI update
Merge pull request #1764 from kbidarkar/fix-contentenv-tests

Fixes the UI life-cycle environment test cases for UI update
Fixes many UI testcases related to sync, cv, hw_models

RH Common 6.5 is 2.28GB , rhel6.3 is relatively less in size.
Default timeout is 12 sec. As the element is already deleted,
we can just wait for 3 sec.
Merge pull request #1769 from kbidarkar/fix-UI-tests

Fixes many UI testcases related to sync, cv, hw_models
Update the "help" makefile target

Mention threaded tests.
Merge pull request #1771 from Ichimonji10/makefile

Update the "help" makefile target
Let nose capture stdout and logging output

By letting nose capture the stdout and loggin it will show just output
related to the failed tests. It will drastically reduce the amount of
test output and will only output relevant parts.
Merge pull request #1767 from tkolhar/test_cli

Fixed the failing architecture tests in jenkins - update and delete
Merge pull request #1773 from elyezer/better-test-output

Let nose capture stdout and logging output
Fetches the error message when manifest upload fails.

Uploading manifest seems to fail frequently when uploading at the
jenkins end. This will help us know the exact error.
Merge pull request #1772 from kbidarkar/manifest-error

Fetches the error message when manifest upload fails.
Fix org & loc creation functions and improve error message for api.

Improves error message for enable_rhrepo_and_fetchid in api.utils.

The indent for submit button for org and location functions is now
fixed.
Also now org and location CRUD functions have flat code and no
generic exceptions.
Merge pull request #1778 from kbidarkar/fix-api-tests

Fix org & loc creation functions and improve error message for api.
Added poll_frequency to wait_until_element and wait_for_ajax

When waiting for spinner or progress bar it's desired to have
increased poll_frequency rather than a default of 0.5 secs.

This may avoid high CPU usage seen while spinner or progress bar.

Also fixed few content view test-cases.
Merge pull request #1779 from kbidarkar/wait-poll_frequency

Added poll_frequency to wait_until_element and wait_for_ajax
Rewrite a subscription test

Rewrite method `test_negative_create_1` in module
`tests.foreman.api.test_subscription`. The test docstring states that it should
not be possible to upload the same manifest to two organizations, but the actual
test code did not verify this assertion. Make that happen.

    $ nosetests tests/foreman/api/test_subscription.py -m test_negative_create_1
    .
    ----------------------------------------------------------------------
    Ran 1 test in 31.106s

    OK