adding specs for email_sender_controller
add update_affiliation_on_registration method for user and use that in controller for affiliation updation on registration
modifying the hook in checkout controller and user registrations controller for proper updation of affiliations, minor bug in AffiliateCredits module, minor renaming on user#update_affiliation_on_registration