Rework affwp_add_referral() to allow an affiliate id or a user id to be passed. Closes #390