wraps curl functionality into an easy to use node.js module