Db-Cache-Storage and CAINFO for cURL

This pull request adds the ability to use a database for caching the requests.

Also you can provide a bundle of trusted certificate agencies to (safely) fix the SSL certificate problem.