main: don't define core commands in the main file
Move script loading into a script