 If the directory corresponds to an existing floobits workspace, you will instead join the workspace.
 "
   (interactive "DDirectory to share: ")
-  (floobits-load-floorc)
+  (floobits-load-floorc-json)
   (floobits-destroy-connection)
   (lexical-let* (
       (req (list
-        (cons 'username floobits-username)
-        (cons 'secret floobits-secret)
         (cons 'perms '((AnonymousUser . [])))
         (cons 'line_endings (floobits-get-line-endings))
         (cons 'dir_to_share dir-to-share)))

      (progn
        (floobits-destroy-connection)
        (lexical-let* ((req (list
          (cons 'username floobits-username)
          (cons 'workspace workspace)
          (cons 'secret floobits-secret)
          (cons 'line_endings (floobits-get-line-endings))
          (cons 'workspace_owner owner)))
          (func (lambda () (floobits-send-to-agent req 'join_workspace))))

    (let ((histories (_floobits-read-persistent)))
      (read-from-minibuffer "Floobits workspace URL (owner/workspace): " 
        (_floobits-get-url-from-dot-floo) nil nil 'histories))))
  (floobits-load-floorc-json)
  (let* ((url-struct (url-generic-parse-url floourl))
        (domain (url-host url-struct))
        (port (url-port url-struct))
