Add support for cookies to HttpClient, and support for getting headers from HttpResponse

Add support for cookies to HttpClient. This relies on FileUtils being able to access a file to store the cookies themselves between instances of CURL.

This also adds support for getting headers from HttpResponse, in case someone wants to read those in addition to response data (e.g. to handle cookies manually).