Partially migrates ExternalInterface API to native TypeScript. Still need to fix up globals and $BUILD parameters.
Merge branch 'nat' of https://github.com/mbebenita/shumway into nat