Experiment with a dependency injection strategy for node

See issue #8.