store referrer in cookie for page reload support.
Merge pull request #1330 from veroc/arp_cookie

store referrer in cookie for page reload support.