[runmode addon] Add resolveMode and registerHelper shims

Needed for some modes to load.

Closes #2054