Refs #5681: Candlepin reset only needs to drop, create and migrate the database.

Previously, we used cpdb and cpsetup to manage the Candlepin database,
cert and configuration file deployment when running Katello reset. With
the installer handling the cert and configuration file, we need only to
drop, create and migrate the Candlepin database when resetting.
Fixes #5843, removing api v1 routes.
fixes #5960 - also look at task states to determine completion

sometimes finish_time is not actually set
Refs #5950 - don't show details when the task output is empty
fixes #5951 - adds environment hint to content host registration, BZ1085252

fixes #5951 - adds environment hint to content host registration, BZ1085252
Fixes #5947/BZ1028098 - allow selecting empty GPG key and sync plan.
Fixes #5956/BZ1083314 - add puppet module count to content view versions.
Fixes #5231: Host collection action links will properly select hosts, BZ1096183.
Fixes #5938: Some Candlepin routes need User authorization due to subscription manager GUI.

The following routes need to be accessible via User or Client authorization:

PUT /consumers/{consumer_uuid}/packages
POST /consumers/{consumer_uuid} (force regen of identity certificate)
GET /owners/{org_id}/servicelevels
PUT /hypervisors
Merge pull request #4158 from ehelms/fixes-5938

Fixes #5938: Some Candlepin routes need User authorization due to subscr...
Merge pull request #4171 from ehelms/fixes-5231

Fixes #5231: Host collection action links will properly select hosts, BZ1096183.
Fixes #5975 - Fix for a Content Host  UI reload issue

Previously when you went to content hosts page
and selected packages or errata links for a content host
you'd get multiple reloads. I was caused by a trailing slash.
Even though we have code to address / the modules javascript
tried to reload with a / version. This commit fixes that issue
Merge pull request #4170 from waldenraines/5956

Fixes #5956/BZ1083314 - add puppet module count to content view versions.
Merge pull request #4172 from parthaa/slash-fix

Fixes #5975 - Fix for a Content Host  UI reload issue
Merge pull request #4160 from waldenraines/5947

Fixes #5947/BZ1028098 - allow selecting empty GPG key and sync plan.
Fixes #5978 - Included content host in Host::Managed

Host::Managed extends Host::Base, but for some reason
probably due to server caching the change to Host::Base
is not geting reflected in the sub class causing the dreaded
Operation FAILED: undefined method `association_class' for nil:NilClass

irb(main):015:0> Host::Base.reflections.keys.grep /content_host/
=> [:content_host]
irb(main):016:0> Host.reflections.keys.grep /content_host/
=> []
irb(main):017:0> Host::Managed.reflections.keys.grep /content_host/
=> []
Even something like a reset_column_information didnt do the trick.
This happens only in production, could not reproduce in my Dev
Environment.

This commit fixes this by forcing the inclusion of
HostBaseExtensions in both subclass and super class.
Merge pull request #4174 from parthaa/host-reload-hack

Fixes #5978 - Included content host in Host::Managed
Fixes #5982: Ellipsis content search package descriptions to prevent overflow, BZ1012606.
Merge pull request #4159 from cfouant/cfouant-branch-0527

fixes #5951 - adds environment hint to content host registration, BZ1085252
fixes #5402 - adding feature to remove packages from library repos