     else
         callback()
 
+# Ask to proxy for synchronization between home and proxy.
 resetProxy = ->
     client.get 'routes/reset/', (err, res, body) ->
         if res? and res.statusCode is 200

Client = require('request-json').JsonClient

client = new Client 'http://localhost:9104/'
haibu = require('haibu-api')
haibuClient = haibu.createClient
    host: 'localhost'
    port: 9002


haibuClient =  new Client 'http://localhost:9002/'

resetRoutes = ->
    Application.all (err, installedApps) ->
        appDict = {}


if process.env.NODE_ENV != "test"
    resetRoutes()
