added ability to invite friends via email and added permanent tracking of referrals