Refs #5217: Adding check that the consumer cert matches the passed in
consumer identity when present.
Merge pull request #4085 from ehelms/refs-5217

Refs #5217: Adding check that the consumer cert matches the passed in consumer identity when present.
Refs #5217: Moving permissions into lib/katello directory.
Merge pull request #4087 from ehelms/refs-5217

Refs #5217: Moving permissions into lib/katello directory.
Fixes #5682 - Handle Lifecycle env read perms better

1) Made env index call prune the return list based on read perms
2) Made the env page in the UI display paths appropriately based on read
perms
3) Updated the create env call to require read access on the prior
environment before one can create.
Fixes #5654 - Permissions for env promotion/remove

This commit contains code to handle environment promotion and deletion.
Basic Rules
To Promote/Remove you need
1) promote_or_remove_content_views from content views
2) promote_or_remove_content_views_to_environment from lifecycle environments.

Note: Remove of a content view is slightly different from "destroy".
Remove implies removal of content view versions which could entail
removal from environments.