SendGrid improvements

After a change to the payload SendGrid uses in Cloud Foundry, this
change updates the application to use the SendGrid Java API.