Allow setting root url when running outside a web server

When running PW code from eg. cron, I'd like to be able to still use `$config->urls->...`. This (untested) patch allows feeding the relevant via environment variables.