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 #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 #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
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
Fixes #7059 - enable pagination in subscriptions (API)
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
Merge pull request #4535 from ehelms/fixes-6960

Fixes #6960: Environments no longer disappear on environment selector.
Merge pull request #4556 from bbuckingham/issue-7012

fixes #7012 - content search - fix 404 retrieving spinner.gif
Merge pull request #4550 from waldenraines/6870

Fixes #6870/BZ1075523: use ANONYMOUS_ADMIN for hidden user.