Mail handler for logging and timed rotating logs

Fixes #3.