Port configure script to Node, step 1: compile JS files.

This is step 1 of porting our configure script to Node.  Under this system,
download of dependencies will be managed either by npm or Bower.  The end goal
is to simplify our build and make future maintenance easier.

Progress on #7.
Merge pull request #193 from nicksay/build-with-node

Port configure script to Node, step 1: compile JS files.
Update name script to support import as a module.

Allow importing the `name` script as a Node module for use by other scripts.
The module API follows that of the command line exactly.

Progress on #7.