Allows . prefix in cookie domain
Merge pull request #884 from spumko/issue/876

Allows . prefix in cookie domain