Support TAMER_DRIVER environment variable.

This takes precedence over TAMER_LIBEV and TAMER_NOLIBEVENT.
Add 'make check' unit test target and some tests.