Add .gitignore files for many files generated during testing

These .gitignore files correspond to svn:ignore properties from the Subversion
repository. There are still a few generated files left to clean up or ignore,
but this takes care of most of them.