Modified: Rename from domain to domainName. Avoided use domain module.
Fix issue where npm install doesn't work

This is a fix for https://github.com/sstephenson/xipd/issues/11
Merge remote-tracking branch 'mdsm/patch-1'