     if (new Date createdAt) > KD.newKodingLaunchDate
       Cookies.set 'koding082014', 'koding082014'
 
-  apiUri       : KD.config.apiUri
-  appsUri      : KD.config.appsUri
+  config       : {}
+  apiUri       : null
+  appsUri      : null
   singleton    : KD.getSingleton.bind KD
   appClasses   : {}
   appScripts   : {}

# this class will register itself just before application starts loading, right after framework is ready

# if localStorage.disableWebSocket?
#   if localStorage.disableWebSocket is "true"
#     window.WebSocket = null
# else if KD.config.kites.disableWebSocketByDefault
#   window.WebSocket = null

KD.extend
  newKodingLaunchDate: do ->
    d = new Date()

  registerRoutes: (appName, routes) ->

    @registerRoute appName, route, handler for own route, handler of routes


  registerRoute: (appName, route, handler) ->
