Remove unnecessary current_testname global.
Simplify testname iterations.
Remove dead code.
move setups into pkd_hello
Start cleaning up keyutil.c