Base: Factor out preference-in-storage check to overridable method.

taken from
https://github.com/CyanogenMod/android_frameworks_base/commit/e262881de4fd813bf876ff0b3f2a476d30a1b74d

need by
https://gerrit.omnirom.org/#/c/5759/

Change-Id: I64966e15e0e92a2058809ead2c694a9badae881b

Conflicts:
	core/java/android/preference/Preference.java
Return: Always show battery on Keyguard [1/2]

Based on the feature by burnsra in CM7

Authored by Blunden
Tweaked by DvTonder
Tweaked by kufikugel

PS 6 : Fix multi-user

Change-Id: I02cc3a0d996ca1fb3c96c6847865655be5518434

Conflicts:

	core/java/android/provider/Settings.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java

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