Implement double click gesture

Double clicks are detected by verifying that both the last and the 3rd
to last poses were clicks. This is done by comparing their timings.
This could probably be done in a simpler way by simply comparing the
gesture of the last and 3rd to last pose.