Port configure script to Node, step 6: build demo app.

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

Port configure script to Node, step 6: build demo app.