 http       = require('http')
 form       = require('connect-form')
 MongoStore = require('connect-mongo')
+_          = require('underscore')
 
 create_app = (settings, db) ->
     basedir = settings.app.root

            crashobjs = {}
            for item in arr
                crashobjs[item.id] = item
            return res.send {"ok":"1","crashdata": JSON.stringify(crashobjs)}

    return app



    require('import-api').init_import_api settings, app, db


    #TODO: move to own module
    app.get "/crashreports/:id", (req, res) ->
        crashreports = db.collection('crashreports')
        crashreports.find({"id":req.params.id}).run (err,arr) ->
