Support of typescript 0.9.1

Use of Dojo 1.9 *.d.ts files.
Fix : Dojo.deferred -> Dojo.deferred<any>

Bug fixes and adaptation taken from Patrice Freydiere's AMD version (esri.amd.d.ts)