loadFile(): Added option to specify url as a URLRequest.