Go: implement Readdir() for trees

This way the http module can generate a directory listing for us in
those cases when there's no index file.