Sm beginnings

This is mainly the addition of tests for smtp. 

In the process, it update smtp attachements to use the underlying nodemailer helpers. Issue #56.