Plugin now is available at wordpress.org. this plugin was my personal need. i searched and found nothing 'good' so i built one.
wp referral code been made with developers in mind. hooks are provided to extent the functionality.
hope plugin help someone.
Check out documentation