Merge pull request #987 from am11/master

Minification: Combined TypeScript output (#842)
Code: Reduces block nesting.
Other minor improvements.
Merge branch 'intellisense-bundle'