Cleanup - hide as much inline JS as possible

The HTML source looks a little sloppy with AffiliateWP's inline JS.

This change reduces the inline code to only what's necessary to retrieve the `referral_var` and `expiration` variables from PHP. The rest has been put into a new `tracking.js` file.