Add '.gitignore' files.

'.hgignore' files for Mercurial already exist, but git doesn't use them.