base: added NPE check for lockscreen see through and mPowerRequest

java.lang.NullPointerException
at com.android.server.power.DisplayPowerController.updateButtonLight(DisplayPowerController.java:1727)
at com.android.server.power.DisplayPowerController.setButtonTimout(DisplayPowerController.java:1796)
at com.android.server.power.PowerManagerService.updateUserActivitySummaryLocked(PowerManagerService.java:1404)

F/SystemServer(  711): BOOT FAILURE making Power Manager Service ready
F/SystemServer(  711): java.lang.NullPointerException
F/SystemServer(  711): 	at com.android.server.power.DisplayPowerController.requestPowerState(DisplayPowerController.java:786)
F/SystemServer(  711): 	at com.android.server.power.PowerManagerService.updateDisplayPowerStateLocked(PowerManagerService.java:1750)
F/SystemServer(  711): 	at com.android.server.power.PowerManagerService.updatePowerStateLocked(PowerManagerService.java:1193)

Change-Id: I4fba4a30ede28627e01e0ce4656a4d0d37f5bfd1
[1/2] Base: NavigationBar customization

Includes:

- Allows user to customize navigation bar.
  Features :
   - Choose from 1-6 # of buttons
   - Re-arrange / assign buttons
  Id: Idc9f5f401f15d207504e49de47666bb5510a06ca

- Navbar : Rework logic for determining orientation
  This patch introduces better checks for hybrid ui's.
  This should fix issues of small buttons due to incorrect ui determination
  Thanks Rolf Arne Schulze for testing :)
  Id: If5b61dc4764a98deedb5b801d11451fed2488cba

- Make navigation bar ready for per-user configuration.
  Also clean it up a bit.
  Id: Ic10bd161fce53bf30048a0cb927dcf1e2bfa7774

- Fix layout on N10
- Remove uncessary padding and logic
- Phone fixes
- Phone padding fixes

PS6: Added RTL support (http://review.cyanogenmod.org/#/c/55059/)
PS7: Navbar: Fix MDPI & HDPI landscape layout (http://review.cyanogenmod.org/#/c/56098/)

OmniGears part: https://gerrit.omnirom.org/#/c/3156/

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/custom_strings.xml

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

Change-Id: I5bcdd53e8344e8ce137088544a4a3964655c53af
Revert "[1/2] Base: NavigationBar customization"

This reverts commit 19442d7c6aa6b67a5474da0ed50b2ce799d1180d.
Merge branch 'head' into kitkat