Turn emailer into a dependency in EmailSender

This lets us test what emails we decide to send separately from the
email sending itself.

Includes a basic test harness for testing such messages.
Switch to logging instead of print statements

Also adds a -v (and -vv and -vvv) option to command line.