 fs        = require 'fs'
 request   = require 'request'
+path      = require 'path'
 W         = require 'when'
 nodefn    = require 'when/node'
 

     ###

    data = (key, obj) ->
      W ->
        respond.call(@, key, obj, obj.data)

    ###*
     * Takes json and adds to records object

     ###

    file = (key, obj) ->
      f = fs.readFileSync path.resolve(obj.file), 'utf8'
      respond.call(@, key, obj, JSON.parse(f))

    ###*
     * If an object is passed, adds object
