Settings: Advanced low battery indicator options (2/2)
Based on a idea I saw on Liquid and from CR3C0 (thanks guys) which we
modified to an extended version

This commit introduces following new SlimBean modes to indicate low battery

     * 0 = show dialog + play sound (default)
     * 1 = fire notification + play sound
     * 2 = show dialog only
     * 3 = fire notification only
     * 4 = play sound only
     * 5 = none

Due that notification is a unique SlimBean feature some words on it. Notification
behaviour is the same as Pop-up. User can dismiss it manually or it is
dismissed automatically if charger is connected. Also you user get a
status bar ticker message about the notification and notification is always
on first place of list. And last if vibration is enabled
notification vibrates.
HALO: Option to pause the underlying app (2/2)

- adds an option to pause the active app when using HALO
- this is enabled by default for devices with low memory
- (currently: <640MB RAM available to the kernel)

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Fix a number of multi-user bugs

-Expose User Interface for non owner users.  Every option in user
 interface is multi-user compatible, except halo, which has to be
 disabled for non owner users :(
-Power sounds is not multi-user compatible, fix it!
-Reorganize and general cleanup

 This is a big derp :)

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Fix lock settings pattern crash on configuration change

A helper class used in LockPatternView.onSaveInstanceState() and
.onRestoreInstanceState() wasn't set, causing to NPE settings once
a configuration change would happen while displaying lock pattern
input.

This is now set on creation.

Test case:
1) Enable rotation on device.
2) Open Settings/ChooseLockPattern preference.
3) Rotate device

Change-Id: Ic8091bc92dee2a9a23f4ddebd6de4111ec8ac318
Merge remote-tracking branch 'sm/sm-jb-mr1-power-widget' into HEAD