Factor out the duplication in the node functional script tests.
Introduce the skeleton of the new command line entrypoint.
Point the test suite at the public-er API instead.  Make them pass again.