FWAPI-101: fw.js: allow passing in a logger