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