Make domain a configurable variable. Improve request error logging.

I thought this module was extremely useful and I'd love to see it made more available generally as a Drupal module.  This PR makes it possible for admins to configure their own email send domain, which seems like an important step in that direction, but I'd be happy to help out with other items that would be useful here.