Adding ?ref= parameter to each link and ignoring other parameters.

Needed for reliable tracking from where the user comes from.