Rewrite AddSubmodule to automatically clone the module, and checkout a given git ref.