Reduce package size with .gitattributes and added composer.lock to .gitignore

Hello,

I've reduced package size by defining some files and test folder as export-ignore inside .gitattributes. When Github does a `git archive` to provide the package via the API the Zip files becomes now smaller.

Also I've removed composer.lock and added it to .gitignore since this is a library.