add a js accesible cookie set by session_context to help users log in when 3rd party cookies are disabled
Call .onready if 3rd party cookies are disabled.

Prevents users from being immediately logged out if 3rd party cookies are disabled.

Set a cookie in the client before /wsapi/session_context is requested. session_context checks for the existence of this cookie and returns a new field "cookies" which is true if cookies are enabled, false otw. Checking if the cookie can be read on the server avoid the Android 3.2 and 4.0 where cookies can be read by the browser even if they are disabled.

fixes #2308
fixes #2999
Allow navigator.id.logout to be called a single time if 3rd cookies are disabled.

This allows a site to log a user out of their site, essentially falling back to .get behavior.
Set 'cookie: true' if the session cookie came through