waf: Add a log file for test results.

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