Autotools testing

This sets up autotools to run the tests and Travis to test run both the simple makefile and autotools.

Also fixes #149 a bit better.