error event executes the callback with the error. 

Previously, on error, the library would just console.log the error message when it would be more useful if it just sent the error back to the callback for the user of the library to handle it.
Merge pull request #8 from foysalit/master

error event executes the callback with the error.