Moved the compiler result and error logic into a "CompilerResult" class, implemented script collections.