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

Ref: #662 
Ref: #674