Stylus gestures features (2/2)

Summary:
Forward-port of http://review.cyanogenmod.com/#/c/18613/6
to JB.

Change-Id: I7a1521c8368971d473dc7ceae4ede0175fa87040

Test Plan: depends on D262 , test and i'll clean merge

Reviewers: synergy, anders3408, jriordan001, raymanfx, donald.munn, rlasalle15, randall.rushing

Reviewed By: randall.rushing

Differential Revision: http://review.codefirex.com/D263