Move script loading to the core

Have to implement our own YAML system