   treemaExt = require 'treema-ext'
   treemaExt.setup()
   filepicker.setKey('AvlkNoldcTOU4PvKi2Xm7z')
+
+  # Set up Backbone.Mediator schemas
+  configureChannels()
+  configureDefinitions()
 
 $ -> init()
   

app = require 'application'

init = ->
  app.initialize()


      return false

configureChannels = ->
  for channel of channelSchemas
    Backbone.Mediator.addChannelSchemas channelSchemas[channel]

configureDefinitions = ->
  for definition of definitionSchemas
    Backbone.Mediator.addDefSchemas definitionSchemas[definition]