Email system

WIP. Need to integrate Rahul's work on Users.