Display options: allow configuration of wake on plug behavior (2/2)

The PowerManager now checks Settings.Global.WAKE_WHEN_PLUGGED_OR_UNPLUGGED
to determine wake-on-plug behavior.  The configuration option
config_unplugTurnsOnScreen is used as the default value of the setting.

PS 2: Fix formatting of if statement

Cherry-picked from: I062794828831a2b6faf4293579103d2251f1bdd0

Change-Id: I7eefff468a64c04e536c377cff3c740a7e568ade
Merge "Display options: allow configuration of wake on plug behavior (2/2)" into cm-10.2
merge changes from CyanogenMod 10.2 into local branch
Statusbar Network Indicator custom colors (1/2)
- Reset button to stock color working

Change-Id: Ic7cdc9f7c684f5101058ae8b46c50fcc82733645

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Traffic.java
Fix "Option to hide network speed indicator when there is no traffic"

Change-Id: I6c8cceca742486bb36daba1118d5f3511aa983bf