Fixes #5884: Fix typo for list_owners authenication to be properly handled.
Merge pull request #4140 from ehelms/fixes-5884

Fixes #5884: Fix typo for list_owners authenication to be properly handl...
Fixes #5917 - Content search ambiguous SQL id error
Merge pull request #4152 from parthaa/sql-fix

Fixes #5917 - Content search ambiguous SQL id error
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.