Add back backlight brightness curve adjustment.
merge-conflict: core/java/android/provider/Settings.java
Fix race condition in backlight adjustment.

When configuring the automatic backlight levels, there's a race
condition in setting the lux and brightness settings as the settings
provider doesn't allow storing multiple settings atomically. When
deleting rows, there's quite a high chance of DisplayPowerController
picking up a state where the lux values already have the lower number of
rows, but the brightness values do not, effectively leading to an
ArrayIndexOutOfBoundsException.

Fix that by
- waiting a second of cool-down time until applying the settings and
- adding a sanity check for the very unlikely case that the delay
  between writing both values is > 1 second

Change-Id: I44e41530fc5334aaefc4ab7d3a90542f78fabe0c
JIRA:CYAN-755
Imporove auto-brightness handling
merge-conflict: core/java/android/provider/Settings.java'
Re-Add auto brightness configuration UI(1/2)
merge-conflict: core/java/android/provider/Settings.java
Allow adjusting progress on touch events.

Change-Id: Ide0a7ae057a62f3631a32eeaa63f3e04dec5bf54
fixed some derps that has come with autobrightness import, also added a missing settings property