Moved the bundled three.js to vendor directory.

This keeps it separate from the .hx files, to avoid confusion.
Fixed many errors revealed by the compiler.