Detail modules and tests names in the logging callbacks

Fixes #685 (partially for the regressions on `test/setTimeout.html` and `test/stack.html`)
Fixes #677
Fixes #674

Ref: #662