Fix cancellation of double tap gesture, add some unit tests

Change-Id: I79270fce42ff48df10cbba9f655631b33a2f3b2a
Implement toggle fullscreen/normalized window size

Change-Id: I2618b0d27d730df58b9003f9b158b093c2c76e3e