Added a .gitattributes

This is so when people are installing this through composer, they only get the required source files. This saves disk space for the user user, and saves github's bandwidth.

I've also cleaned up the .gitattributes file. Ping me if I've overlooked anything in there.