Support HTTP cookies

Probably needs to be read through just to clarify that it works. I have tested it for one or more cookies and the syntax can be used as follows (tested only for that syntax).  Its late at night, so not 100% if this will work as well as the last implementation, but my tests so far seem promising. Works with the `oraclejdk` anyway :smile:. Feel free to suggest changes, etc.

Again, you may want to read through it and change some things, feel free.

The other pull request can probably be closed now, I just created a new branch as I figured this work be easier than trying to remember what I changed from the previous branch and remove the bits I don't need.

````json
{
    "cookie": {
        "cookie": "value",
        "cookie": "value"
    }
}
````