Pull functions that are needed for the git remctl scripts out of the invirtibuilder and into a common module.