Add cookieDomain to init options

- add cookieDomain option
- update cookie.create to support domain parameter