Library for recording and replaying mouse and touch gestures for testing purposes