Update domain parsing for cookies

Now excludes hashes, query strings, and anything after the first
slash when setting a domain for a cookie that is missing one.
Log when setting a cookie
Use url.parse() instead of regexp
Merge pull request #82 from macbre/bug_cookie_domain_74

Update domain parsing for cookies