Add support for specifying a referrer via "?ref=<referrer>"