Add basic smtp util code for other parts of salt

This allows other parts of salt, outside of the returner, to use SMTP.

I'll change the returner to use this code in another pull request.