Added .gitignore and hacked up Makefile.am so that it uses subdir-objects.