Kirsty Coventry has been elected president of the International Olympic Committee, becoming the first woman and first African to get perhaps the biggest job in global sports.