Fixes #8405 - Filter :interfaces_attributes when calculating templates_used
Fixes #7908 - normalize mac before host get saved

For some reason we save host without running valdiations when we import
attributes from facts. Therefore we have to take care of mac
normalization by ourselves. We have to normalize it just after setting
new value because save can occure anytime.
Fixes #8456 - normalize addresses only if mac is being set
fixes #8457 - auto complete search clear btn is now positioned correctly

in non index pages which uses auto complete (e.g. filters) the clear
button was not inside the input field.
Fixes #6765 - correct wrong validation on media name

Regex used for validation was wrong, raising error on multiple white spaces instead of on trailing white space.
Trailing white space is stripped anyways by StripWhitespace concern before validation.
Original bug was concerning " " passing validation. However, that is not a single white space but rather quotes with a
space between them; while not useful, it is a valid name. (The quotes are escaped in the db)
Fixes #7440 - correctly autocomplete current_user
fixes #8445 - upgrade rails to 3.2.21
Fixes #6872 - Add title to new compute resource page
Fixes #7233 - Drop Ruby 1.8.7 and revert Ruby 1.8.7 specifics
Fixes #7525 - don't fail on structured facts
fixes #8357 - Set fog gem to version 1.25.0
fixes #8510 - ignore gettext load failures in production without it

gettext is only used when loading gettext_i18n_rails 1.x rake tasks, so it's
only marked as a development dependency.  In production we won't have it, but
still ship this .rake file, so permit loading to fail.
fixes #8367 - Eager load classes under /lib
Fixes #8414 - extracts validators from models

Also cleans up some unused validators looking for trailing whitespace
that is stripped by the StripWhitespaces concern.
Tried to make some sense from unmatching regexps and validation error
messages. Some validations might need a different regexp to check for what
they are actually supposed to validate - but atleast now messages fit
the actual validation.
fixes #8463 - remove i18n bundler group as it isn't optional

fast_gettext/gettext_i18n_rails are both runtime dependencies, not optional.
gettext_i18n_rails_js moved to assets as it provides no runtime functionality.
Fixes #5723 - Show host groups inherited via config groups in puppetclass index
fixes #8527 - pin rest-client to version compatible with current rbovirt

Pin rbovirt a bit in preparation for a jump in versions.
fixes #7487 - remove unused background-image containing UTF-8 character

UTF-8 was causing BOMs to appear in the precompiled CSS, which then prevented
these styles being applied, so bullet points appeared on the dashboard.
fixes #8467 - trends range selector is now visible
fixes #8459 - remove sp_subnet_id from api/hosts