capture some logging/warning output in some tests

A few tests were generating log statements or warnings in iptest output. This captures those log statements and warnings.

It also adds the `@onlyif_any_cmd_exists` decorator, which is like `@onlyif_cmds_exist`, but pass if any is available instead of all, and then uses that to allow nbconvert html tests to run with node instead of pandoc.