Only do talk() callback when response is JSON, emit fail event when it is not JSON
Only do talk() callback when response is JSON, emit fail event when it is not JSON

and strip whitespace before and after the data

fvdm/nodejs-directvps