[FIXED JENKINS-20941] Use credentials for "submodule add" and "submodule update"

I don't necessarily expect this pull request to be accepted as-is, as I didn't add any tests, and I don't have time to do so currently. It does seem to work, though, and doesn't break any existing submodule tests.