A heavy police response has stifled Halloween celebrations in Shanghai, in what many have viewed as an attempt by authorities to crack down on large public gatherings and freedom of expression.