Populate user's email field in Mixpanel

Fixes #2003
Fine with me.  The project could probably use a bit of style cleanup in a lot of regards.