Exclude files from distribution with .gitattributes

This is the same thing as what's already in [doctrine/doctrine2](https://github.com/doctrine/doctrine2/blob/master/.gitattributes).

Saving ~500Kb of tests for 150Kb of code when installing through Composer :)