Fix curl options

I fixed the curl options merging and added a way to pass customized curl options to the library from the config array.