Added option for 'referrer_uri' to override local env for referrer host uri.