Add .gitignore file.

Ignores ~ files, DS_Store and vim .swp files.