Ignore build-related files in "git archive" (fixes #8167)

This is useful for keeping standard "composer create-project"
checkouts clean. Unless they use "--keep-vcs", in which case
.gitattributes is (correctly) ignored.

This has the side effect that archive-checkouts can't
run phing or phpunit scripts, but I think that's
acceptable.
Merge pull request #29 from chillu/pulls/gitattributes

Ignore build-related files in "git archive" (fixes #8167)