Port lib/typescript.js to TypeScript 0.9.5

Issue #265
Closes #288
Closes #289
Pass allowReturnOutsideFunction to acorn

Issue marijnh/acorn#86
Update jquery def, add Promise, jqXHR
[chai defs] Fix namespacing error and include "should" api.
[def loader] Don't allow guessing when calling getType
Use computed props when guessing type of regular property
Defer to computed prop in guessProperties
Add currentScript to document in browser's def
Add registerElement interface
Add HTML Element interface
Add custom element lifecycle callback based on current implementation.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24314
Don't generate return paths that we can't parse

Closes #298
Update registerElement !type
Add URL for create/revoke blob url
Add support for a default configuration through ~/.tern-config

Issue marijnh/tern_for_sublime#35
Fix bug where an empty file was treated like a missing file

Closes #301
Mark context as optional for jQuery constructor.
Analyze return argument, even when not in a function

Other code expects it to be analyzed.

Closes #36
[typescript adaptor] Add some missing syntax forms

Issue #303
[jquery defs] Switch 'on' signature to simple form

Issue #300