System for gesture control of the mouse and other applications