Move mk-session logic to be reusable from both Clojure and ClojureScript.