Gitignore and autogen.sh

This change updates the .gitignore file so that a git status shows only the changed files and ignores all the autotools/make check/make results. It also adds the (BSD 3-Clause Licensed) autogen.sh script which generates more understandable error messages and warns about issues (glibtoolize vs libtoolize on OSX for example).