switch to jQuery style cookie manager
Merge pull request #3829 from sebv/doccookies

ios cookie rewrite