Fix type errors, added lib.d.ts that doesn't have any DOM definitions.
Merge branch 'ts' of https://github.com/mbebenita/shumway into ts