Implement document.cookie more properly.

Supports multiple cookies, but not options like path, max-age, and so on.