Fernando Alonso ends months of speculation about his future by opting to stay at Renault for two more years.