- Allows mysql2 usage with Puppet < 2.7.10 - Fixes #1350
fixes #2018 add forward slash to controller name of url_for() helper
added slash /unattended to other url_for calls
fixes #1834 to get foreman running under ruby 1.9.3
puppet class form ui fixes.
removed class_name from all relationships that has_many :through as its invalid.

It seems like we hit a rails bug, where the joins were incorrectly created,
once removed, it was generated correctly.

reviewing the docs again, say that its ignored with hmt relation, so removing anyway.
Fixes #2058: prevents the spinner from going forever if listing fails
commented rack-mini-profiler as it slows some development machines too much. When needed it can be uncommented.
removed puppet class include in index because it creates too many joins in a single query for sql-light to function properly.
Do not use :class_name in has_many :through, missed on for class_params
fixes #2062 - Add max_trends setting
fixes #2061 - test if oVirt API has HTTPS redirect

rest_client will refuse to follow redirects on POST requests, so the URL must
be entered as HTTPS.  Don't require HTTPS as dev environments may be HTTP-only.
fixes #2063 - pin minitest to 3.5+ and mocha 0.12.x

Mocha 0.13.x and minitest 4.x will require Rails 3.2.
fixed broken test on ruby 1.9
removed has_many_polymorphs and used has_many :source and :source_type
renamed to thread_session.rb
refs #1991 - Cache not cleared prevent location / org feature to show up

1. ensures settings cache is removed when app starts
we can't remove all cache, with Rails.cache.clear as that might lead to issues
with people using memcache with multiple foreman instances (e.g. we can clear
the progress bar cache while restarting another foreman instance).

The other alternative is to put a TTL on the settings, but I think this
option for this specific case makes more sense.

2. fixed the cache directory, from /tmp to /tmp/cache.
fixes #1991 expire topbar cache on user when restart server
DEPRECATION WARNING: Giving a hash to body is deprecated, please use instance variables instead.
fixes #1992 sort does not fail if vlanid is null