         res.json value
       else
         res.status(404).send "Not found"
-      return
 
-    return
   apps = conn.collection("apps")
   app.get "/apps", (req, res) ->
     sendResult mongoFind({},
       author: true
       name: true
     ), res
-    return
 
   app.get "/apps/:author", (req, res) ->
     sendResult mongoFind(

    ,
      name: true
    ), res
    return

  app.get "/apps/:author/:name", (req, res) ->
    sendResult mongoFind(
      author: req.params.author
      name: req.params.name
    , {}).map(".0"), res
    return

  app.post "/apps", (req, res) ->
    sendResult mongoPost(req.body), res
    return

  app.post "/apps/:author/:name/rename/:newName", (req, res) ->
    mongoResult = Bacon.fromNodeCallback(apps, "update",

      console.log "ERROR: cannot connect to mongo at ", mongoUrl, err
    else
      AppDatabaseWithConnection conn, app

AppDatabaseWithConnection = (conn, app) ->
  mongoPost = (content) ->
    data =
