Move support functions to lib/functions.sh. Make curl and git quiet.