More error resistant code for backendResolver

Setting a cookie with x-mxm-user-id and x-mxm-token-guid (for reporting statitics when the token is unreadable)