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.
Merge pull request #1587 from Ichimonji10/gitignore

Trim down .gitignore file