Companion code for the CloudControl/SendGrid demo