some minor error handling
remove some wrapping of scenemanager with require.js. Caused weird issues that need to be tracked down. Precompute the raytrace structures for  geometry