Referral Code API's

@aaustin 

Will add docs later.