fixes #5026 / BZ 1094176 - content view package group filter - handle duplicate group names across repos

The current logic for package group filters does not properly handle the
case where a content view has multiple repositories with the same or overlapping
package groups (e.g. 2 repos w/ package group named X).  The issue is that
the package group selection is based upon name; however, it needs to be more
specific than that.

This commit updates the package group filtering to not identify the group
by name, but instead by the pulp id/uuid for the group.  This way when
a user selects a group, they are choosing a specific one from a specific
product/repo.

The following are high-level changes introduced with this commit:
1. add uuid to the content_view_package_group_filter_rule
2. update the API and UI to show the product and repo name that
   each package group is associated with
3. update API and UI to behave correctly when a user adds/removes
   package groups from a filter
4. update the publishing logic to utilize the package group uuid
   when applying the filter
fixes #4636 - refactor OperatingsystemExtensions to RedhatExtensions and refactor MediumExtensions
Fixes #6211,BZ1102521 - Requiring a user to ping pulp_auth

It looks like the code didn't properly set User.current so Katello.pulp_server
was nil. This code checks for a user in the controller. Also, it handles the
case of no user by skipping the pulp_auth check which needs remote_id from a
user.
Fixes #5555 - fix org update action's apipie param

In the OrganizationController v2 update action, the param_group
resource contained hash named resource. This was not substituted
for organization. As a result hammer-cli-katello, through
api-bindings, was incorrectly expecting and passing resource instead
of organization to the update action. Subsequently no
organizations were being updated.

The param_group was redefined on the update action so that the param
hash could have the correct name, :organization.
fixes #6197 - moving host/guests to virtual_host/virtual_guests

This corrects conflict with foreman host link

rubocop fix

spec test fix
fixes #6215 - do not pass full objects to rabl

fixes #6215 - return available_content to products node

fixed test
Merge pull request #4248 from bbuckingham/issue-5026

fixes #5026 / BZ 1094176 - content view package group filter - handle duplicate group names across repos
Fixes #6245 : Add mongo and postgres logs to katello debug
Merge pull request #4264 from thomasmckay/6197-host-guest

6197-host-guest - moving host/guests to virtual_host/virtual_guests
Merge pull request #4266 from thomasmckay/6215

fixes #6215 - do not pass full objects to rabl
Fixes #6147 - filter both org and env in sys

systems index action does not filter by environment_id when both
organization_id and environment_id are passed; it only filters by
organization_id. This allows the index action to filter by both.
Merge pull request #4265 from daviddavis/temp/20140613091921

Fixes #6211,BZ1102521 - Use hidden user's remote id to ping pulp_auth
Merge pull request #4278 from bkearney/bkearney/6245

Fixes #6245 : Add mongo and postgres logs to katello debug
Fixes #6250,BZ1110012 - Define search_type for PuppetModule class
Merge pull request #4283 from daviddavis/temp/20140617090242

Fixes #6250,BZ1110012 - Define search_type for PuppetModule class
Merge pull request #4189 from dustint-rh/org_api_apipie_param_group_resource_substitution

Fixes #5555 - fix org update action's apipie param
fixes #6204 / BZ 1099016 - Fix gpg key on repo create and yum retrieval

This commit addresses 2 issues:
1. update the repo create to support associating the gpg key url
   in candlepin
2. update the v2 api to expose the 'gpg_key_content' api to enable
   yum clients to retrieve the key
Merge pull request #4244 from dustint-rh/system_index_filter_org_env

Fixes #6147 - filter both org and env in sys
Merge pull request #4263 from bbuckingham/issue-6204

fixes #6204 / BZ 1099016 - Fix gpg key on repo create and yum retrieval
Fixes #6252/BZ1087079 - default to errata_id on bulk errata searches.