How Greece got to grips with a relentless refugee crisis