A more sensible .gitignore

Shamelessly took from http://stackoverflow.com/a/17803964, keeps the previously ignored files that way.