A more sensible .gitignore.

Shamelessly took from http://stackoverflow.com/a/17803964
Merge pull request #1 from kenkeiras/improved-gitignore

A more sensible .gitignore