Added option to use Cloudmailin service instead of SendGrid.

Implemented suggestions on pull request #18. Squashed the commits for easier review.