getPort() returns -1 when undefined
Domain-matching rules are not the same when cookies are served or accepted
Update the domain matching to the RFC6265 - this is quite uncomplete yet. 'cookie jar' seems like the standard name for the cookie store.
Only the CookieJar class should be used now, closes #926