Fixes #3245 - delete all user data upon user delete
Provides a common way to determine current affiliate.
Changes per #3246 review
Merge pull request #3247 from sergii-tkachenko/determine-current-affiliate

Provides a common way to determine current affiliate.
Merge pull request #3246 from aaronschachter/user_delete

Delete all user data upon user delete