Completely redone the typings from the docs.

Using 0.9 (generics and override by string literal).
Add promise to JQueryDeferred

Add promise method returning JQueryPromise from JQueryDeferred:
http://api.jquery.com/deferred.promise/
Initial generic types for jquery statics
Merge pull request #497 from mihailik/master

Reworked CodeMirror.
Merge pull request #621 from nwolverson/jquery-promise

Add promise to JQueryDeferred
Merge pull request #622 from nwolverson/jquery-generic-statics

Initial generic types for jquery statics