         _console.debug observer
         _console.debug config
         observer.observe target, config
-
-
-    ###
-    #<section id='getDir'/>
-
-    # getDir
-    # ------
-
-    # This function function fetches the directory listing for a path
-    # on a given repo and branch.
-    ###
-    getDir = (path, callback) ->
-      node = undefined
-      name = undefined
-
-      # remove trailing '/' for API requests.
-      path = path[...-1] if path and path.length > 1 and _.last path is "/"
-      if not path or (path.length is 1 and path is "/")
-        # item 0, root, each command a subdir
-        name = "/"
-        node =
-          name: "/"
-          path: path
-          children: makeRootNodes()
-
-        _console.debug "[Josh.FeedlyConsole] root node %O.", node
-        callback node
       else
-        parts = getPathParts(path)
-
-        # leading '/' produces empty item
-        parts = parts.slice(1)  if parts[0] is ""
-        name = parts[0]
-        handler = _self.root_commands[name]
-        unless handler?
-          callback()
-        else if parts.length is 1
-          # item 1, commands
-          node =
-            name: name
-            path: path
-            children: null
-
-          # implicitly call command as part of path
-          command = handler.exec
-          command "", "", (map) ->
-            json = _self[name]
-            _console.debug "[Josh.FeedlyConsole] json to nodes %O.", json
-            node.children = makeJSONNodes(path, json, name)
-            callback node
-        else
-          # item 2+, details
-          _console.debug "[Josh.FeedlyConsole]
- not implemented, path: %s, name %s", path, name
-          get "streams/"
-          callback null
-    ###
-    #<section id='getPathParts'/>
-
-    # getPathParts
-    # ------------
-
-    # This function splits a path on `/` and removes any empty trailing element.
-    ###
-    getPathParts = (path) ->
-      parts = path.split("/")
-      return parts.slice(0, parts.length - 1)  if parts[parts.length - 1] is ""
-      parts
-
-    #<section id='makeNodes'/>
-
-    # makeNodes
-    # ---------
-
-    # This function builds child pathnodes from the directory
-    # information returned by getDir.
-    makeNodes = (children) ->
-      _console.debug "[Josh.FeedlyConsole] makeNodes %O.", children
-      _.map children, (node) ->
-        name: node.name
-        path: "/" + node.path
-        isFile: node.type is "leaf"
-
-    makeJSONNodes = (path, children, type) ->
-      if _.isArray(children)
-        nodes = _.map(children, (item) ->
-          name = item.label or item.title or item.id
-          $.extend
-            name: name
-            path: path + "/" + name
-            isFile: type is "leaf"
-          , item
-        )
-        nodes
-      else
-        _.map children, (value, key) ->
-          name = [
-            key
-            value
-          ].join(":")
-          name: name
-          path: path + "/" + name
-          isFile: type is "leaf"
-
-    makeRootNodes = ->
-      _.map _self.root_commands, (value, key, list) ->
-        name: key
-        path: "/" + key
-        type: "command"
-        isFile: "command" is "leaf"
+        _console.debug "[feedlyconsole] #feedlyconsole found."
+        initializeUI()
 
 
     # UI setup and initialization

    # `getNode` is required by `Josh.PathHandler` to provide
    # filesystem behavior. Given a path, it is expected to return a
    # pathnode or null;
    _self.pathhandler.getNode = (path, callback) ->
      _console.debug "[Josh.FeedlyConsole] looking for node at %s.", path
      # If the given path is empty, just return the current pathnode.
      return callback(_self.pathhandler.current)  unless path
      parts = getPathParts(path)
      # If the first part of path parts isn't empty, the path is a
      # relative path, which can be turned into an *absolutish* path
      # by pre-pending the parts of the current pathnode.
      parts = getPathParts(_self.pathhandler.current.path)
      .concat(parts)  if parts[0] isnt ""
      # At this point the path is *absolutish*, i.e. looks absolute, but
      # all `.` and `..` mentions need to removed and resolved before it
      # is truly absolute.
      resolved = []
      _.each parts, (x) ->
        return  if x is "."
        if x is ".."
          resolved.pop()
        else
          resolved.push x

      absolute = resolved.join("/")
      _console.debug "[Josh.FeedlyConsole]path to fetch: " + absolute
      # if get getDir returns false, use same node
      return getDir(absolute, callback) or self.node


    #<section id='getChildNodes'/>

    request = super(url)
    request.headers = Authorization: "OAuth #{@oauth}"
    return request

  get: (resource, args, callback) ->
    return super resource, args, (response, status, xhr) ->
      if response? and not status?
