Accessing headers from `curdoc().session_context`

Also related to Bokeh server vs stand alone documents.