fix testresults dir bug
switch to JSON results
POD docs for functions used in tests.
Makefile rules to build HTML out of POD.

It is crude and needs polishing. Not integrated with the rest of the
makefile.