Edbrowse passes cookies to js at start of session, and js passes new cookies back.

js queries and sets cookies through document.cookie.
This use to be easy, just call the functions in cookies.c,
but now requires interprocess messages.