fixes #5960 - also look at task states to determine completion

sometimes finish_time is not actually set
fixes #5951 - adds environment hint to content host registration, BZ1085252

fixes #5951 - adds environment hint to content host registration, BZ1085252
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
Merge pull request #4176 from ehelms/fixes-5982

Fixes #5982: Ellipsis content search package descriptions to prevent overflow, BZ1012606.
Merge pull request #4161 from jlsherrill/states

fixes #5960 - also look at task states to determine completion
Merge pull request #3998 from jlsherrill/pkg_delete

fixes #5402 - adding feature to remove packages from library repos
Fixes #5911 - perms for system registration calls

Also handles env lockin/cv lockin for content view remove

Rules of the Game
To register a system one needs
1) create_content_hosts (under content hosts resource)
2) view_content_views
3) view_environments

Also cleaned out some old code.