fixes #2485 - updated_at = NULL
(cherry picked from commit 27120f6239e252fb392ad3d61e68d7fc4dd0c740)
Fixes #2458 - Directory structure precreated
(cherry picked from commit fa375e9b6dd052724814e1416fb5805c7b680ed3)
fixes #2522 dashboard events table should not have a border and is too long
(cherry picked from commit 40b834e3af07916056d314503bc0de81f60dfe1e)
Fixes #2513 - orgs created in katello do not appear in org filtering

- topbar cache sweeper turned on for api controllers
- a bit of refactoring to get rid of repetitive expire_fragment
(cherry picked from commit f4430a08911002d0c36ee3c83a4ee0b3e5f4b824)
fixes #2197 - form fields for new host are scoped by location and organization on load
(cherry picked from commit 671b7907dd397c1623208815505f5f09f43dcc28)
Fixes #2497 - Join to the fact_values table when a user fact-filter is applied
(cherry picked from commit 9ae88fc3e7e4621df841eb6fb43fe938db4e52a5)
fixes #2499 Add os_minor and os_major autocomplete
(cherry picked from commit d17e67c219ab07860b4bb1a2ce480c78cf963022)
fixes #2440 remove unused files, code, unnecessary require statements
(cherry picked from commit f3dd3bb605197b4ed66be83678b6895b5abe0cd9)
fixes #2130 - normalize_hostname appends domainname to fqdn

When the trailing part of $fqdn doesn't match $domain, the normalize_hostname
function would append $domain onto the end of $fqdn, saving the host as
$fqdn.$domain (Example: hostname.domain1.com.domain2.com).

This rename would happen if you edit a host already named 'host.domain1.com'
where a (hardcoded) certname says 'host.domain1.com' but the domain fact says
'domain2.com'.

If a hostname is supposed to follow RFC952 format, any . (dot) is only allowed
as a separator between domain parts and _not_ in the hostname part itself.
Thus if there is already a dot in the hostname we have to assume the host name
(fqdn) is already fully qualified.
(cherry picked from commit 0c8f532ed251049dcd93f6ce054f07093f9507f8)
fixes #2498 FactNames are not precreated

Witlessbird's fix to reduce database lookups and do Ruby hash lookups instead
(cherry picked from commit 991cd8ae19d87fc76adf97e18297bb593721e546)
fixes #2509, fixes #2507: few issues around Host::Base#merge_facts and fact names
(cherry picked from commit 136f8dfcb3bbe9a816a265efe619ede33cad0a94)