             [clojure.core.async :refer [close! put! timeout sub chan <!! >!! <! >! go go-loop] :as async]
             [taoensso.timbre :as timbre]))
 
+(timbre/refer-timbre)
 
 (deftemplate static-page
   (io/resource "public/index.html")


(defn -main [& args]
  (initialize server-state (first args))
  (info "Starting twitter collector...")
  (info (clojure.pprint/pprint @server-state))
  (run-server (site #'all-routes) {:port (:port @server-state) :join? false})
  (let [{:keys [follow track handler credentials]} (:app @server-state)]
    (start-filter-stream follow track handler credentials)))



(def server-state (atom nil))


(defn dispatch
