core: Support moonscript modules
core: Improve moonscript loading