Ignore certain files when exporting with git-archive.

The content of the .gitref file will be changed to the SHA-1 of the
commit being archived.

Also, ignore dist/ directory at project root.