Fixes #6533 - rest-client 1.7.0 dropped Ruby 1.8 support

(cherry picked from commit 5dd7da2cb7f31839019c40e9bb6a01ea67a8db0c)
Fixes #6779: Restrict ci_reporter gem to less than 2.0.0 to fix CI.

(cherry picked from commit ec0912fc73a276a988128e987203ad5117b97998)
fixes #4736 - organization edit ui has unselectable environment

(cherry picked from commit 9f3cad157f366904c1e145d19bf35e8cd0282cf0)
fixes #5129 - Host Group creation may fail if parameter is same name

(cherry picked from commit 691f0a1a809569d125e9385e60f8f1e1c8d88061)
fixes #5722: VM-based host cloning picks up existing compute attributes

(cherry picked from commit f5ab56aece96864568282a30ff6f20960efee28b)
fixes #6234 - fixes sorting on compute resources and subnets

(cherry picked from commit 5dd996fd87a191e1dd4cf07d20a90ed4145fdf50)
fixes #5848 - can't search for host with class inherited from config group

(cherry picked from commit 81f4af16ab292d340a395cd0dd37ca742d1d59cc)
fixes #5566 - free text fact values query produces invalid SQL error

(cherry picked from commit b7ae68362481b2b7227fd39cf2be80bf3fc3af9f)
Fixes #6160 - don't validate images for network based provisioning

(cherry picked from commit f7b855491abbfd1737a2c7291ac4b16f8bc98017)
fixes #6003 - don't render user default loc/org object directly

(cherry picked from commit ecac9440024dd86cb1ef0864ff024763a2225cfa)
fixes #5777 - search on filters returns error

(cherry picked from commit aec2cede96978ac395ba2670e2ce7048c9729cdc)
fixes #5928 - added selinux info to foreman-debug

(cherry picked from commit d08a0f54d79b160d20943c7d56f9536509bbe2d4)
fixes #5994: Power and Console buttons are available to non-admin users with appropriate permissions

(cherry picked from commit 5aac54d7dbf15147c07d91d08b50f16496a291ae)
fixes #6216, #4416 - avoid foreign key errors when deleting some objects in use

(cherry picked from commit e0d618efa6a8c02b46000bfcb9ded5eb672a6e13)
fixes #6355 - OS free text search shouldn't search associations

(cherry picked from commit 366a0851c0bb0a8d760e21b9f90e9b65904b422d)
fixes #6374 - NIC hostname now blank when domain is present, but no hostname is given

(cherry picked from commit fc2ddea769919c94fdffc7835cca84cfa2b19389)
Fixes #6337 - ensure VM tab is still visible when we deselect profile

(cherry picked from commit c7a7004299583ac2247c60d3e2cd3e42d3731245)
fixes #6177 - clear host facts/reports when build=true set over API

(cherry picked from commit aa19255e85c1121ae1896466089d286243b814d7)
fixes #6331 - use view permission to authorize individual VM show pages

(cherry picked from commit 4d5260deb0baac5df6308bd9c5cfb515a7bbee9f)
fixes #6358 - Update LookupValue fqdn matchers when a host is renamed

(cherry picked from commit 89730c3c8e21eb6c05770728ba425e817a03f3e0)

Conflicts:
	app/models/host/managed.rb