It was Europe’s murder capital. Then Glasgow stopped excluding kids from school