Kirsty Coventry has been elected president of the International Olympic Committee (IOC), becoming the first woman in the committee's 131-year history to get the job.