Create three.ts

A refactored TypeScript version of three.js with improved typing, interfaces, and inheritance.