Use in cookie a correct path, added DOKU_COOKIEPATH to js constants
Fixes FS#2837
add cookie secure parameter to cookies set by javascript
Merge pull request #371 from splitbrain/FS#2837cookiepath

Use in cookie a correct path, added DOKU_COOKIEPATH to js constants