fixes #6919 / BZ 1113588 - host - show validation error if no puppet environment

This commit contains a small change so that if the user doesn't provide
a puppet environment, they'll see the validation error sent by the server.

E.g. Puppet Environment: [] can't be blank

The code change is to ensure that the html rendered includes
'for="environment_id"', which is used to support displaying
the error associated with that attribute.
Fixes #6918,BZ1125999 - Removing dupe products in sync widget
fixes #6330 - using pulp & pulp_node features of smart proxy

* to determine the default smart proxy
* to determine whether to show the lifecycle env selection screen
* to determine which proxies to who under the content source selection
Fixes #6960: Environments no longer disappear on hover on Content Search page.
Fixes #6967: Add the correct location of mongo, and collect all log files
Fixes #6944/bz1106434 - Fixed Repodiscovery product validation

Added code in the repo discovery page to validate new product.
Previously product errors like blank name invalid label etc would not
show up on the screen. This commit tries to address that.
Refs #6867,BZ1038323 - Show katello-agent status for systems
Fixes #6985,BZ1127747 - Reusing CVEnv action in org destroy

Reusing the ContentViewEnvironment::Destroy action in Organization::Destroy
since the action was updated without Organization::Destroy being also updated.
This'll ensure future updates won't break org destroy.
fixes #6565 - show kickstart url from content source if it can be calculated. otherwise don't hide media drop down
Fixes #6993: Allow repo-discovery through a proxy.

Note that the Anemone gem allows the passing of proxy_host and proxy_port
by default but does not currently support proxy user and password.
In order to get around this, a monkey patch is applied to anemone
to allow passing user and port.
fixes #6992 - ensure rhel 5 repos can be used by el5 clients

We can not publish the repos prior to syncing as this will cause
pulp to set the checksum on the repos to sha256.  See https://bugzilla.redhat.com/show_bug.cgi?id=1127793
We also need to pull the checksum after sync and add it to the repo
to ensure that clones use the same checksum
Fixes #6995: restore pulp_celerybeat to list of services to restart.

The service pulp_celerybeat was removed from the list of services
restarted with a katello:reset during the pulp 2.4 upgrade. Restarting
the service is working fine now so this commit restores pulp_celerybeat
to the list of services to start/stop during katello:reset.

http://projects.theforeman.org/issues/6995
Fixes #6870/BZ1075523: use ANONYMOUS_ADMIN for hidden user.

Foreman recently added the concept of an ANONYMOUS_ADMIN to User.
This commit makes use of that in order to ensure that this user
is not displayed on the users page.

http://projects.theforeman.org/issues/6870
https://bugzilla.redhat.com/show_bug.cgi?id=1075523
Fixes #6949/BZ970600: remove unused tasks endpoint.

Tasks are now handled via dynflow making the tasks controller
no longer necessary.  This commit removes the controller and
the related tests and routes.

http://projects.theforeman.org/issues/6949
https://bugzilla.redhat.com/show_bug.cgi?id=970600
Merge pull request #4539 from isratrade/6565

fixes #6565 - show kickstart url from content source if it can be calculated. otherwise don't hide media drop down
Fixes #6828/BZ1104636: show correct version of puppet module. …

The latest version of puppet modules was being incorrectly
calculated, based on an incorrect assumption that the last
item in the array was the latest version.  This commit
explicitly sorts the puppet modules by the version such that
the latest version is correct.

http://projects.theforeman.org/issues/6828
https://bugzilla.redhat.com/show_bug.cgi?id=1104636
Merge pull request #4552 from waldenraines/6995

Fixes #6995: restore pulp_celerybeat to list of services to restart.
fixes #7005 / BZ 1122736 - content host - change registration behavior with foreman host

This commit alters the behavior of registering a content host
(with or without an activation key) that is to be associated
with a foreman host to do the following:

1. identify the foreman host that this content host will be
   associated with by both name and mac address (previously
   it was only by name)
2. if the foreman host identified is already associated with a
   content host, delete it and then create/associate a new one.
   (This will avoid there becoming duplicate content hosts with
   the same name.)
fixes #6970 - content host bulk actions - fix 2 regressions

Stumbled across a couple of issues that need fixing.

1. unable to perform bulk actions (via systems_bulk_actions_controller)
   due to permission denied errors
2. unable to retrieve applicable errata
fixes #7012 - content search - fix 404 retrieving spinner.gif

This issue was observed when testing the following bugzilla:
    https://bugzilla.redhat.com/show_bug.cgi?id=1115308#c8