Stylus gestures features (1/2)

Forward-port of http://review.cyanogenmod.com/#/c/18610/
to JB

Change-Id: Ie0ab71d3a2283078601db8405aaabe1d81b27665
(cherry picked from commit 9f3ee9f7c0877fcfbe90a7c176481f949194fb75)

Conflicts:

	core/java/android/provider/Settings.java
	core/res/res/values/config.xml