submodule: clean up git config parsing

Expose a fresh git_submodule_config() method, hiding the lower-level
parse_submodule_config_option().

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
add: get it to update .gitmodules as well

This is a WIP.