Refactor install.js #installModule
Refactor install.js #installModule

The installModule function now uses a number new high level functions to
do its work instead of inlining all of the low level details. Adds
support for promises.

gameclosure/devkit,gameclosure/devkit,gameclosure/devkit