Add invitation logic and clean up DBProg error handling.

Add ability to send email via SendGrid. This should probably be factored out into something more testable.

Created by  Kris Nuttycombe  on June 19, 2015
2XQD6KKKD6QVHFHAEMVE3XXY7X2T7BLTLL7XIILZAXNJJH2YONUQC
Dependencies
In channels
main
Change contents