Sadiq Khan became London's first Muslim mayor, as voters rejected attempts to taint him with links to extremism and handed a decisive victory to the bus driver's son from south London.