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.
fwiw I'd be ok with using global settings to ignore my emacs files...