Command line uses api.js.

Refactor NodeCompiler into own file.
Rename compile-single-file -> compileAllJsFilesInDir.

Replace q-io -> glob to avoid global function overrides
2014