Some work towards opening a remote file (#313).