Add a waf unittest command that runs unit tests (optionally with Valgrind).

To configure with Valgrind: `waf configure --valgrind=true`