Actions for cloning and updating git repos

This patch adds helper functions that create actions that clone or
update a remote git repository.