Add a basic .gitignore.

Does what it says on the tin.  This is the generic .gitignore I use for my projects.