Update jquery/jquery.d.ts

In jQuery's then call, the failure callback is optional. Only the success callback is mandatory.
Merge pull request #205 from Steve-Fenton/patch-2

Update jquery/jquery.d.ts
update qunit definition

Tests added. Resolved some bugs.