Fixed/cleaned up jshint warnings.
Reject the promise returned by request() if the first arg (error) was provided to the callback.
Regenerated unisocket.js.