Add .gitignore andignore /doc/tags

The helptags command produces the tags file, which should be ignored by git.