 
 ;; Data
 
-(def db {:data (get REPO "tree")
+(def db {:data nil
          :start 0
          :editing #{}
          :opened #{}

                  (swap! cdb #(assoc % key val)))
            :query (fn [key]
                 (get @cdb key))}))

;; Handlers


(defn ctrl []
  "https://api.github.com/repos/jussiarpalahti/repodoc/commits"
  (let [username (route_param "user")
        repository (route_param "repository")]
    (if (or
        (not= username (querydb [:username]))
        (not= repository (querydb [:repository])))
      (get-repository-data username repository))))

(defn viewer
  [ctrl]
