Autotoolize again

https://github.com/Yelp/ybinlogp/pull/5 but rebased on master

also, I added a `make check` rule that ought to work unless you're doing out of tree builds; I can't figure out how to get the build root from automake into the test harness to set LD_LIBRARY_PATH correctly.