Add .gitignore

I add a .gitignore file and eliminate some of the files that should
not be tracked in the repo.