Added .gitignore

The .gitignore makes git ignore any files that are listed. In this one I use wild card characters to ignore any files ending with a `~` or `.pyc`.

It makes for a much cleaner commit history as you do not have to remove them manually if you accidentally add them to your commit.