 PREFIX = "amck"
 
 
+class Ajax
+  csrf_token: ->
+    
+
+  post: (url) ->
+
 class Repo
-  constructor: (@name) ->
+  constructor: (@name, @is_watched) ->
 
   key: ->
     PREFIX + @name

    localStorage.setItem(@key(), @pack(val))

  get_notify: (event) ->
    event not in @get()

  set_notify: (event, value) ->
    s = (e for e in @get() when e isnt event)
    s.push(event) unless value
    @set(s)


class Notifications

    val.join " "

  unpack: (val) ->
    if val? and val isnt ""
      val.split(/\s+/)
    else []

  get: ->
    @unpack(localStorage.getItem(@key()))
