Updated Sendgrid code to work with latest Sendgrid node API (0.3.x)