 (defrecord HttpServer [peer-config]
   component/Lifecycle
   (start [{:keys [sente] :as component}]
-
-    ; Just reset atoms for now. Atoms should be created and reset in here
-    (reset! tracking {})
-    (reset! deployments {})
-
     (println "Starting HTTP Server")
-
-    (defroutes my-routes
+    (defroutes routes
       (GET  "/" [] (page))
       (GET  "/chsk" req ((:ring-ajax-get-or-ws-handshake sente) req))
       (POST "/chsk" req ((:ring-ajax-post sente) req))

                                :user-id user-id
                                :tracking-id tracking-id}))

(defn stop-tracking! [user-id]
  (swap! tracking
         (fn [tr]
           (if-let [manager (tr user-id)]

                         :modified-at (java.util.Date. (:mtime stat))})))
         (into {})
         (reset! deployments)
         (distribute-deployment-listing send-all-fn!))
    (do
      (println (format "Could not find deployments at %s. Retrying in 1s." zk-onyx/root-path))
      (Thread/sleep 1000)
      (recur send-all-fn! zk-client deployments))))

(defn event->uid [event]
  (get-in event [:ring-req :cookies "ring-session" :value]))

(defn start-event-handler [sente peer-config deployments tracking]
  (future
    (loop []
      (when-let [event (<!! (:ch-chsk sente))]
