Add autogen.sh and make sure test stuff is in automake template