       if err then warn err
       log response, "App saved!"
       callback?()
-  
+
   publishApp:(path, callback)->
 
     kiteController = @getSingleton('kiteController')
     appName        = getManifestFromPath(path).name
-    
+
     @getApp appName, (appScript)=>
 
       manifest    = @constructor.manifests[appName]

  compileSource:(name, callback)->

    kallback = (app)=>
      
      return warn "#{name}: No such app!" unless app

      {source} = app
      {blocks} = source
      
      orderedBlocks = []
      for blockName, blockOptions of blocks
        blockOptions.name = blockName

          callback err, response
    else
      callback null, scriptInput


  saveCompiledApp:(app, script, callback)->

    @getSingleton("kiteController").run
      toDo        : "uploadFile"
      withArgs    : {
