 
     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


  nick:-> KD.whoami()?.profile?.nickname

  whoami:-> KD.userAccount

  logout:->
    mainController = KD.getSingleton('mainController')
    mainController.isLoggingIn on



  isGuest:-> not KD.isLoggedIn()

  isMine:(target)->
    if target?.bongo_?.constructorName is 'JAccount'
