Reworking code to create project flow. Pulled out most of email handling from views. Need to further abstract some of the code that is reused like pickle.