anchor.diff:                      {loop, set_xsrf_cookie(Req, XSRFToken, NewXSRFToken),
                        #state{sessionToken = NewToken}, 3600000, hibernate};
                   [<<"logout">>] ->
  -                    self() ! {reply, imem_json:encode([{<<"logout">>, <<"ok">>}])},
  +                    self() ! {reply, [{<<"logout">>, <<"ok">>}]},
                       {loop, Req, #state{sessionToken = SessionToken},
                        5000, hibernate};
                   _ ->
  
positive.code:     ?Debug("spawn fun~n to ~p", [State#state.sessionToken]),
      spawn(SpawnFun),
      {loop, Req, State, hibernate};
  info({reply, Body}, Req, #state{sessionToken = SessionToken} = State) ->
      ?Debug("reply ~n~p to ~p", [Body, SessionToken]),
      BodyEnc = if is_binary(Body) -> Body;
  
negative.code: % {ok, PostVals, Req2} = cowboy_req:body_qs(Req),
  % Echo = proplists:get_value(<<"echo">>, PostVals),
  % cowboy_req:reply(400, [], <<"Missing body.">>, Req)
  reply_200_json(Body, SessionToken, Req) ->
      CookieName = cookie_name(?SESSION_COOKIE),
      Req2 = case cowboy_req:cookie(CookieName, Req, <<>>) of
          {SessionToken, Req1} -> Req1;
          {_, Req1} ->
              {Host, Req} = cowboy_req:host(Req),
              Path = dderl:format_path(dderl:get_url_suffix()),
              {SessToken, Opts} = get_cookie_opts(SessionToken, ?HTTP_ONLY_COOKIE_OPTS(Host, Path)),
              cowboy_req:set_resp_cookie(CookieName, SessToken, Opts, Req1)
      end,
      cowboy_req:reply(200, [
            {<<"content-encoding">>, <<"utf-8">>}
  