Add .gitignore and ignore /doc/tags

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