waf: Add a log file for test results.

Use a proper Logger instance, the log file is placed under `build/test.log`.
This also remains all remaining `gt_` prefixes to `ut_`.