CH-1142/CH-1178: Add the agent type querystring param to the "Custom Lif...

...t campaign" link

This includes some variable renaming while I was in the theme function and also I think a bug fix which I will point out in the code.
hmmmm yeah it must have been.