Forward port "Display options: allow configuration of wake on plug behavior"

From http://review.cyanogenmod.org/#/c/47159/

Change-Id: If1d50cbad76763bb8e12b2e7a4f7c21f42a58f31

Patchset: 1
http://review.cyanogenmod.org/#/c/54871/
(cherry picked from commit 7edfdcd31039828a5e9bf94788b8fb15da7a998b)

Conflicts:
	src/com/android/settings/DisplaySettings.java