Settings: Configure wake on Power, Home or Both [2/2]

Allows users with Home button to specify which buttons to use to wake
device. Options are:

- Power Button only
- Home Button only
- Power or Home Button (default)

Essentially the same as current functionality, but now enables user to
"disable" Wake on Power Button, by selecting "Home Button only".

Note: requires config_home_wakeScreen device overlay:

packages/apps/Settings/res/values/bools.xml

Based on Xposed addon by Daniel Bergløv aka SpazeDog
https://github.com/SpazeDog/xposed-additions

PS 2: change default to Both, refactor

Change-Id: If45e537532d3f877c272e37253de3f70831b67bf

Conflicts:
	res/values/arrays.xml
	res/values/strings.xml
	res/xml/display_settings_rom.xml
	src/com/android/settings/slim/DisplaySettings.java
Dependency for HALO size
Fix issue 52986: Wifi settings abnormal when screen rotation

When checked "Show Advanced settings" in wifi setup wifi setup wizard, and rotate the phone to landscape, the advanced settings are gone, but the checkbox is still checked. It's because of checkbox is set click listener but not checked changed listener, it can't handle checkbox's status properly.

Change-Id: I2930cab4d0878c3d91db46560f837ca21d45da4d

Conflicts:
	src/com/android/settings/wifi/WifiConfigController.java
Fix Screen timeout
Merge branch 'jb2' of https://github.com/LiquidSmooth/android_packages_apps_Settings into jb2