No more circular dependencies! Fixes #247.

But it appears that TypeScript does *not* automagically turn multifile projects into a single file. So I think we'll have to use browserify...