Adding .gitattributes.

refs #1804
https://projects.artefactual.com/issues/1804
turning version on for sanitize names.
Setting git versioning.
Pulling git version id.
Re-adding verison id.
Changing how git revsion is parsed.