[1/2]Hardware Keys:port HW key remap and button brightness controls from CM

Conflicts:
	core/java/android/view/ViewConfiguration.java
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java
Port "Option to control cursor in text fields using volume keys (1/2)"

This feature is moved to framework so it also works with third party keyboards.
Patch Set 3: Added missin @hide statements

Change-Id: I8e20240e7bee5351ab20bb3d701eb95a5fd3e112

Conflicts:
	core/java/android/provider/Settings.java