Merge branch 'master' of https://github.com/OTRS/otrs
Improve Ldap-Sync by allowing to configure
* multiple fields which will be tried in sequence (first hit wins)
* static fields ("field"name starting with underscore, which is prohibited as
  ldap-attributeName)
* a combination of both (obviously static fields will always hit)
add documetation to AuthSyncModule::LDAP::UserSyncMap
Added validation for relative time periods in dashboard stats settings.
Code cleanup and fixes for JS errors.
Adds UnlockTimeout parameter to AddQueue script.

This commit adds the UnlockTimeout parameter to the otrs.AddQueue.pl
script. It uses "-t" since "-u" is already in use by UpdateTime.
Followup fix for bug#9828 - Dynamic field updates of unchanged dynamic fields cause event based actions to fail.
Fixed bug#9844 - Column filter not saved on ticket overviews.
Fixed bug#9864 - No filter icon for dynamic fields in ticket overviews.
Followup fix for bug#9828 - Dynamic field updates of unchanged dynamic fields cause event based actions to fail.
Removed duplicated code.
Fixed bug#9863 - Reset single filter in overviews leads to no results page.
Removed last sync date to prevent merge conflicts.
Fixed scale settings GUI.
Added validation for time scales.
Fixed distinct call in TicketSearch() to not use other fields than id.
This could cause duplicate entries if fields of joined tables were in the select clause.
Revert "Fixed distinct call in TicketSearch() to not use other fields than id."

This reverts commit d1f96a3583c1120211c0e78cf117d7e34b7a7079.
Moved JS logic from DTL to JS API.
Moved JS logic from DTL to JS API.
Repaired stats settings storing. Tidied.