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'.
Merge pull request #376 from tjhei/export_ignores

add .gitattributes