Bill de Blasio elected mayor in a landslide