use UMD to register the module and setup node.js (NPM) packaging

This helps implement #20 and fixes #24 (though Intl.min.js is not rebuilt).

UMD:  https://github.com/umdjs/umd/blob/master/returnExportsGlobal.js