Continuing conversion/refactor to TypeScript
Updated build script to generate module indexes for easier importing.

Generates both TypeScript files which will be committed to the repo and JS files in case we want to override the style of require.js tsc generates.
Moved testing scripts beneath scripts directory and fixed references
Build fixes and improvements for module indexes
Continued refactoring into TypeScript
Adding module index files to source control