The democratic socialist candidate's victory in the Democratic primary for New York City mayor shocks US politics.