Add curl error info in case of failed request

Hey Christian,

I think that it'd be worth adding some debug / error handlers to the plugin. Plenty of inexperienced programmers might come into issues while using this great library and configuring it wrongly.

I'd also like to do the same with examples provided by you, however they most probably deserver a separate commit for that. 

What do you think?