 (ns clj-gamification.handler
-  (:use compojure.core
-;;        ring.middleware.session.store ;; TODO delete
-        )
-;;  (:import java.util.UUID) ;; TODO rm
+  (:use compojure.core)
   (:require [compojure.handler :as handler]
             [compojure.route :as route]
             [hiccup.page :refer [html5 include-js]]

            [ring.middleware.session :refer [wrap-session]]
            [ring.middleware.session.memory :refer [memory-store]]
            [ring.middleware.file-info :refer :all]
            ;[ring.middleware.file :refer :all]
            [hiccup.bootstrap.middleware :refer [wrap-bootstrap-resources]]
            [hiccup.bootstrap.page :refer :all]
            [clojure.pprint]

  (reset! (:teams system) {})
  (reset! (:votes system) {})
  (reset! (:voter-ips system) #{})
  (reset! (:projector system) :prestart)
  (reset! (:session-atom system) {}))

(def current-system-for-repl "Reference to the latest system created to have access to it from the REPL; don't use anywhere else" (atom nil))

(defn init
  "Init the current system, optionally with a default system, returning a Ring handler"
