fixes #2550 Puppetclass search_by_host doesn't return all classes for an unknown host

Tests for puppetclass API searches on nonexistent hosts

Puppetclass search_by_host does not fail if Host does not belong to any Hostgroup

Puppetclass search_by_host query looks for distinct puppetclasses instead of pruning them afterwards

Puppetclass pluck uses DISTINCT instead of .uniq on the result
(cherry picked from commit 7507fbcede129c219ca1d85e757d2bdd17d5ffb9)
Fixes #2372 - Strip non-digit characters from non-numeric OS versions
(cherry picked from commit fe838fad64723c17a4f69d37355927214cba4592)
fixes #2537 - audit details on deleted host fail
(cherry picked from commit 23db9bad8b8595c7bb88cd016983fd0945ec79ae)
fixes #2546 - audit details error - undefined method 'map' for string
(cherry picked from commit ff9597b46bc8aa7f93ac25a942a2b109afee8d7e)
Fixes #2502 - session expiration updates

Signo now allows to transparently prolong user session which got
expired. Also when you now logout from Foreman you will end up in Signo
login form. This brings some code clean up and test changes and small
SSO method API change.
(cherry picked from commit 6c563741cb1877e5859ff124b6e895505cbfd529)
fixes #2551 new host image not always visible under openstack
(cherry picked from commit 511e8f789155d6e5914bbdb5c1810aca70572d15)
fixes #2325 No A record created in domain when provisioning image based vm
(cherry picked from commit 3b6d152746d63444ce0ae2044cec4cbb8f224882)
fixes #2553 let setting admin attribute on user creation
(cherry picked from commit 7fab6ba6c7e6085bee5149953aa52a59d83e62f4)
Fixes #2571 - Deleted admin is recreated
(cherry picked from commit 4df2e17b75c65fa657ef9499ccf9c71547f11dcf)
fixes #2567 - handle backtraces correctly in compute orchestration errors
(cherry picked from commit dd2b55dc928cf2ef0dc8befcb867a9816864239b)
fixes #2563 - fallback user image has wrong path
(cherry picked from commit c7846bcd8040c560717b8c036f447456e1319aa8)
fixes #2536 - loading locale .mo files in production mode

- initializer script fixed to look for *.mo files
- Makefile updated to place *.mo into /locale/*/LC_MESSAGES
  (rake gettext:pack places them there as well)
- *.mo files added to foreman.spec
(cherry picked from commit 40b31d27c0b45a7bc4d22411cd3dcc3551b3ab0f)
fixes #2542 - sort image listing with datatables
(cherry picked from commit af1b63500af591325ccdbe0dbfc9caac232cd37c)
Fixes #2519 - Protect locale changes from validation failure so that
password validation can be run
(cherry picked from commit a2a5a5fef2950c0a60c5aec3378277e2c5cb47bd)
fixes #2335 - update puppetclass redirects to referrer page
(cherry picked from commit fb95b3c779953dd59278edd16770fe0384e1e6e9)
Fixes #2581 - missing buildrequire gettext
(cherry picked from commit 39a842b10db823e485b485c0b0bd49f3fb14e4b0)
fixes #2582 indicators for all.
(cherry picked from commit 89b9ecb070b530641b005a1ef1437b7e3ed19c3d)
fixes #2573 - refresh Fedora 18 comps, don't force SCL
(cherry picked from commit b5885038577dafc6533831829150eee03b51b233)

Conflicts:
	foreman.spec
fixes #2106, #2123, #2561 - sign RPMs, rename -ec2 to -compute, fix foreman.repo URLs
(cherry picked from commit 3afbd14599a8f0cc2178df638f4570b68ad441ed)

Conflicts:
	extras/packaging/rpm/sources/foreman.repo
	foreman.spec
fixes #2555, #2560 - add foreman-release and MySQL gems to comps
(cherry picked from commit 259a849c2525b1cf8771b18f60272c1d97d3e7b1)