Cookie parser and security check

Parse Cookie and Set-Cookie headers and check expiry, scope and security attributes.

Input limit: 16 KiB.