Pull-out method in refresh_repos

Refactor refresh_repos and pull out code to make the 'fetch_repo'
method. This allows us to keep the pathogen repo (which is a required
plugin) up-to-date.