add .gitattributes

we ignore the testsuite and some other files when creating a tarball
with git archive. This is also used by github for 'releases'.