Create new files for email processing
Add code for processing emails.
Remove testing code
Make some minor layout changes