Thousands of migrants were left without shelter after overnight fires gutted their overcrowded camp on the Greek island of Lesbos.