Converting .addCommandHandler to Promises. Refactor to use deferred.makeNodeResolver()