Check curl errno() and throw Exception

Without this, it may gives seemingly unrelated error, ie.:

Warning: get_class() expects parameter 1 to be object, resource given in
/.../lib/Cake/Utility/Debugger.php on line 579
Merge pull request #63 from rchavik/wip/1.0-curl-exception

Check curl errno() and throw Exception