Added type definitions and tests for jQuery Finger plugin.

This is attempt number two after messing up the rebase on the last PR. Hopefully, this one goes a little more smoothly.