add a gitignore file

It contains common exclusion rules, autoconf stuff, automake stuff,
cscope and po. It is expected that a user would use a `build/`
directory to build stuff.
Merge pull request #382 from vincentbernat/gitignore

add a gitignore file