The NYPD is investigating more than 15 threats to officers, posted on social media, following the deaths of two policemen shot dead while on patrol.