More null correctness. Also added accessors to FsFile and FsDirectory to get their FileSystem instance.