Adding a welcome email for new users.

Added the infrastructure necessary to support sending a email to
users when they sign up, either locally or by using an OAuth
provider. Also added a basic welcome message for new users.

Fixes #374
Since you're doing this twice, add a helper function? This function is already really long and hard to grok (mostly my fault).