fixes #2697 - HostMailer summary is broken
(cherry picked from commit 8e851ef524a3348c1587e53e3c2da616fdbe1fdc)
(cherry picked from commit 7ff08812e42c2688a995caca60ad236e67a2814e)
fixes #2697 again - HostMailer typo and .deliver
(cherry picked from commit 0a93217273d8b41f4d1d91e29c2be9c4547c90d3)
fixes #2695: Updated fedora and ubuntu mirror urls
(cherry picked from commit 53bd7e1fb635bfa46d8e1d9ed483eb5415dbbe2d)
fixes #2690 - undefined method gsub! for nil:NilClass on fact import
(cherry picked from commit 9628014a44c9bbea74c62c0c8c2916937e9c98c4)
fixes #2404 - prevents 404 when updating invalid name used as id
(cherry picked from commit 696420ff788834dad99352d326fa74fd764572cd)
fixes #2701 - require correct minitest file

(cherry picked from commit f604723465b0effc63ee8d1b8b5622f01508ec16)
(cherry picked from commit c36baf86ae47bc09a18021900d05c96d23d20a1c)
fixes #2317 - VM's with the name foreman_########
(cherry picked from commit 557b8543c26619442be7412ddd5780ec7c550605)
fixes #2710 - removed a superfluous os name check that was tripping up safemode.
(cherry picked from commit c9d6c478febab78d1543f89066c33e1ecf1059f8)
fixes #2724 - use __method__ instead of static method names in SSO
(cherry picked from commit 6326752f626f7b7565118db7627f715429652b4f)
fixes #2645 - non-admin users can now create smart variables
(cherry picked from commit ff2677e3c6689388958f055c50ad075191510e87)
Fixes #2712 - Handle Net::SSH::Disconnect gracefully
(cherry picked from commit 0b5d270d9fcb1fae39b5d9e3b8bbd4999e710882)
part of a fix to #2716 error in discovery plugin menu and user without provisioning permissions
the other part is a fix to the discovery plugin.
(cherry picked from commit f039437bf004b2ddecea12f24219ba1cb2d5136c)