Stylus gestures features (1/2)

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

Change-Id: Ie0ab71d3a2283078601db8405aaabe1d81b27665

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