jQuery Promise Typings

Added typing to jQuery Deferreds and Promises. They should be interoperable with other promises that support .then . This resolves issue #726 .