ws: Add support for Chunked Transfer Encoding.

supported for chunked transfer encoding and added/updated related test cases.
fixed some typos and a potential bug.

Fixes #649
Instead of this condition, could you just call queue_bytes() directly from cockpit_web_response_headers() and cockpit_web_response_headers_full()? That would make the code cleaner and easier to understand.