submodule-config: move submodule-config functions to submodule-config.c