Move send test email to be a handler.
Add support for specifying relay host.