Thousands have protested against the killing of a Palestinian baby in a firebomb and last week's attack on Jerusalem's gay pride parade.