improved email functionality. Added emailing tests. Turned Requests and Sessions into entities
merged