Trim down .gitignore file

Only ignore files and directories that are relevant to this project.
Unnecessarily ignoring files can make troubleshooting especially hard in
situations where a troublesome file is invisible to git.
same comment as above