Adds a number of attempts for connect

The connectAttempts option disable leap motion library if couldn't connect after connectAtempts failed connections.
Value -1 is the original behavious : try forever.
Merge pull request #1 from zqsd/master

Adds a number of attempts for connect