Kirsty Coventry was elected president of the International Olympic Committee, breaking new ground for the global sporting body.