Download and add a gitignore.

Taken from https://github.com/github/gitignore.