Sweep2wake and Doubletap2wake for the Nexus 7 (flo)

picked from: https://github.com/flar2/flo/commit/1f6863cc647b786fc3a91e4dbfee9d8871104869