More typescript declaration file stuff. Engine+Runtime+Shapes+Media. Fixed "new" to use "constructor".