Convert CodeLoader() to match ES6 Loader()

Isolate reporter and project in InternalCompiler.