[4.0] Added a .gitattributes file

This is so when people are installing this through composer, they only get the required source files. This saves disk space for the user, and saves github's bandwidth.