 
     return "#{if secure then 'https' else 'http'}://#{subdomain}#{vmName}/#{publicPath}"
 
-  runningInFrame: -> window.top isnt window.self
-
   getGroup: -> KD.currentGroup
 
   getReferralUrl: (username) ->
     "#{location.origin}/R/#{username}"
-
-  tell: -> KD.getSingleton('appManager').tell arguments...
 
   hasAccess:(permission)->
     if "admin" in KD.config.roles then yes else permission in KD.config.permissions


KD.extend

  apiUri       : KD.config.apiUri
  appsUri      : KD.config.appsUri
  singleton    : KD.getSingleton.bind KD
  useNewKites  : do ->
    useNewKites = switch
      when KD.config.kites.stack.force


  socketConnected:->
    @backendIsConnected = yes

  # Rewrites console.log to send logs to backend and also browser console.
  enabledBackendLogger: (backendLoggerClass)->
