js changes to parse referral codes
php changes for referral codes
Resolved conflicts
Merge branch 'dev-copy' into dev