fixes #3515 - API handles not found objects with 404

(cherry picked from commit 46338cd73c542ecc3aa045b45e831434792c710e)
Fixes #4022: Make api puppetrun a PUT for REST standards

(cherry picked from commit bc11c17bcc66fbec3a71be920efa4de32d508ecb)
fixes #2231 - hostgroup deletion is restricted to hostgroups without children

(cherry picked from commit 8c68024ac619121312680ee8afc467857155e71d)
Bump copyright, remove spurious file

(cherry picked from commit 21a51525360341356b11d17259506011f42434ae)
fixes #3983 - added trends:clean to cron

(cherry picked from commit cf4861dd7a44e3264c81ae5b98bb01caf298ab8f)
fixes #3940 - extlogout page layout fixed

(cherry picked from commit b4b12197e4ffecfe97b14f3ecd5631b26ebd9489)
fixes #3867 - Wrong Compute Resource type shown on overview

(cherry picked from commit 2ebd2f227aef16da62c7884065bb9b47a846c9a3)
fixes #4139 - fixed quiet flag in foreman-debug

(cherry picked from commit d03f4e530191434b2db4bc78841c3c67ba5c88ff)
fixes #4132 - helper select_f missing option for :multiple => true to increase width

(cherry picked from commit 52667febe83f247b9a166c233a9bde1f62f72607)
fixes #3998 - API v2 error on /api/compute_resources, missing gce.json.rabl

(cherry picked from commit 9926d4d3f87e439d2eaa36f5d54b07d71c57c3fe)
fixes #4023 - API v2 - compute resources partials should should attribute alias names and not database column names

(cherry picked from commit 8a0ffcfaa900079d628253ee7f9de2feec182914)
fixes #3760 - API v2 define metadata @total for each controller

(cherry picked from commit 6f9438866488180e196ff18e1372cf0773afe7b9)

Conflicts:
	foreman.spec