Intellisense: Add reference path for TypeScript.
Code: Various analysis fixes.
(only 3 warnings left)
Merge pull request #680 from am11/master

Intellisense: Add reference path for TypeScript