Settings: Forward port long-press-back to kill app (1/2)

Added switch preferences
Code: CM
Settings: add "advanced" menu to Display/TapToWake

Forward TapToWake from CM11

Contains Commits:

Author: Ricardo Cerqueira<cyanogenmod@cerqueira.org>
DisplaySettings: Add hardware-framework support for tap-to-wake

Since we have tap-to-sleep globally, might as well support the
wake gesture as a standalone thing through the HAF. Place it in
"Display".
Change-Id: I6facc2334ff9e80077581c54c428476594e91528

Author: Roman Birg <roman@cyngn.com>
Settings: set proper default value for tap to wake

The first time the display_settings.xml file gets inflated, the
PreferenceManager takes the defaultValue and persists it in the default
shared preferences file.
When we read the double tap to wake preference,
we assume it has a default value of true, which it uses until the user
enters Display Settings for the first time. At that point, the default
value is persisted, and every boot after will use the default value in
display_settings.xml.
Remove the default defined in the XML file.
Change-Id: I0989dd73b6b3c42ff8649bc17eebf4e191293ee4

Change-Id: I271390aa7bfc56811dcf6fff7e1d05c76c4bfa48
Buttons: Allow disabling hard navigation keys

This adds support for enabling the navbar on devices with
hardware keys.
This requires that the device supports the KeyDisabler
HAF methods, and is available in the Buttons menu
Settings: allow home button to wake device [2/2]
Answer call with hardware HOME button (1/2)

Squashed commit of the following:

Author: Oleksandr Byelkin <sanja.byelkin@gmail.com>
Adds ability to answer call with hardware HOME button
preparation to winter time
Change-Id: I0d22a6fbb92a61f08b50cae5c14d0030b81ee6ec

Author: Michael Bestas <mikeioannina@gmail.com>
Settings: Move home answer & power end call options

Move 'Home answers call' & 'Power ends call' options to button settings
Change-Id: I2f365a3d278b0845b7c5ffcfe70c54160a00c24e
NavBarDimensions.java

- Toggle on/off (CyanogenMod alredy did but only for hw keys devices).
crDroid allow all devices to do that for those using PIE apps.
- Nav bar dimensions (height and width)

PS: THIS COMMIT IS A SQUASHED PORTED FROM crDroid KK and 99% od the
codes are from SlimRoms. I want to say a HUGE thanks to kufikugel and
cristianomatos
few corrections
wrong reference