Move script loading to the core

At least, ScriptHelper's part of the task. All the YAML reading work
mainly.