This PR adds support for setting cookies, like with WebClient, to the RestClient

It would be nice if you could add the hacktoberfest-accepted label to this PR :)