Added optomisation to not find branches that own a sha
Changed to use repo URL as the settings key and added dieing if the settings were created by a newer version
Added more optomisations