replace optimist by nomnom since optimist is deprecated by its author; fix some small bugs
try using domain to capture all errors in network
Merge branch 'debug'