Split email helper into lib.
Fix #18: email users when they're approved.