Makefile.am: Implement proper make check-memory target

Uses valgrind to run the tests. Update the tap-driver and
tap-gtester pieces to accomodate this.