Move email sending to its own script.

This will be run more often, probably every 5 minutes.

Change-Id: Ieed413874a6946e9f608a67835916bdfa639e127