MDL-39477 repository: Introducing data generators for repositories
MDL-39702 generators: Adding MOODLE_INTERNAL

As discussed generators should include MOODLE_INTERNAL
as they make use of CFG and they don't make sense without
requiring config.php.