Support for installation and update of ScriptRepository

Add support for cloning and updating the local repository when using the
ScriptRepository interface.
re #6175