add mkindex.go

This tool builds a pkgindex.go file that makes it possible to construct
an entirely stand-alone goimports package (usable on App Engine or in
other contexts where GOROOT is not available).