Email queue

Basic email queue tested and ready for EC2.