Fixes #5692 - correct counts in cached_counters

(cherry picked from commit ae4998bc96efd7c494f2d60313aca435cfc76b52)
Fixes #7247 - Add migration and rake task to correct corrupted cached counters

(cherry picked from commit 4c61ac8461e1f2cb5753d8b16287c8fbc9df317a)
Fixes #6903 - html tags in the message when deleting multiple hosts

(cherry picked from commit a09670fab99fa2ee65be501962dbcccddef6408a)
Fixes #7329 - Correctly validate HostConfigGroup

(cherry picked from commit 455563fee529f2df568a495a0348063c42c9378b)
Fixes #6713: Long names needs to be truncated while listing

(cherry picked from commit adb487e05b284ff6a6462a9b49b14767f01e9d3d)

Conflicts:
	app/assets/stylesheets/application.scss
	app/views/common_parameters/index.html.erb
Fixed #7020: Validation instead or error when comments in 'audit comment' exceeds 255 characters

(cherry picked from commit 370213303f77037dc508c20d9a16bd5d2a393bb2)
fixes #7436 - extract nested host group error message

(cherry picked from commit 62e5c7d286cabc6d07738c62fb6913c0d5608da3)
Fixes 4642: Fix intermittent test failures on rundeck functional tests

(cherry picked from commit c0717c087b0cf952fadcdfce6b09a27305bb3b91)
fixes #7409 - API v2 - add host attribute to GET response for auth source ldap

(cherry picked from commit d6b1f7b47c63052d3579720f5aa307d65d24b3b5)
fixes #5896 - Set Compute Resource's 'Console passwords' option in API

(cherry picked from commit 553a0bebf0e68fad49fad54ead2f593e1065844a)
fixes #7257 - all facts returned if host has no facts

(cherry picked from commit 738a8d23c8e485e51573cebd459cf20f2495d940)
Fixes #6999 - protect user logout against CSRF requests (CVE-2014-3590)

To avoid CSRF, logout is changed to be a POST request so
protect_from_forgery checks the CSRF token. However, in Rails 3 the only
strategy available is to nullify the session of the attacker.
We modify this behavior to raise a Foreman Exception.
This issue is probably worth revisiting on the update to Rails 4 as
throwing an exception is a valid strategy again.

(cherry picked from commit 4e3a7e7a2a542435686a667773eafc73c92e557b)
Fixes #7483 - Use hidden input value to hold raw template contents (CVE-2014-3653)

(cherry picked from commit cafa94774b18d54304f031bbf4f7d1a15fc87b3d)
Fixes #7639 - Remove tooltip for storage/network sections in  Edit Compute Profile

(cherry picked from commit 72c675c641062eba8fd77f3b99d163361a2e6119)
fixes #6856 - API v2 - more efficient import puppetclasses for single environment

(cherry picked from commit 4c59b8daccf3534fa89a31076b3e2ca4ae7fdcee)
fixes #7737 - no specific logout URL needed, will go directly back to login.

(cherry picked from commit f432ee3f50e124a2e11773c86345ef67db8f6340)
Fixes #7620: When cloning a host show old host name

(cherry picked from commit 30534f9c5fb1d7f2dc2f650f1eaf0d0eff1ccbbb)
Fixes #7738 - logout_url is nil by default for all SSO backends

(cherry picked from commit 5ed22f148b7238eef70cc38636cb9bc4624158ef)
fixes #7818 - explicitly render role permissions to fix oj 2.10.3 error

(cherry picked from commit 1155fbf13a6c6cbcb9f4cdfc2f0907eaddaf2cc5)
Refs #7639 - i18n fixes

https://github.com/theforeman/foreman/pull/1799 was merged but Libvirt form tags were not i18n'ed.
(cherry picked from commit 90f691afe6a6a0942d8c413d75ed455d8e3caebb)