Add 'cookie' package
Refactor setting cookies