Assumes the session cookie is stored as JSON which may or may not have been compressed via zlib (indicated by a leading `.`), which is then base64-encoded, and made URL-safe by replacing all `+` and `/` characters with `-` and `_` respectively.
isolate cookie business logic from react mixin logic so that they are more modular. And use the cookie business logic to set translation objects on the window