Add .gitignore

Add a `.gitignore` file based on https://gist.github.com/octocat/9257657.
Functionality is simple but powerful:

- restricts uploading compiled source
- restricts uploading OS-generated junk files
- restricts uploading security-related files, like keypairs