Initial changes to daemonize the email_scheduler.
Completion of daemonization for the email scheduler.