Cleaning up and comment-documenting callback_logger.js

Specifically, cleaning & documenting the way that it can run either sync or
async (but only in node.js)