Greece was notorious for its treatment of refugees, but its approach has evolved and could offer lessons to others.