The jailing of popular Istanbul mayor Ekrem Imamoglu has sparked Turkey's biggest protests in more than a decade.