Squashed 'floo/common/' changes from 98cc0cf..5ed2b15

5ed2b15 Cleanup. Show port blocked message if we're linking to not-floobits.com.
d107ab8 Add reset_retries. Call it on room_info.
81ea9ae Only use outbound filtering workaround for floobits.com
e8c1a99 No need to remove self from reactor protos. Emit stop when stopping. Don't throw if self.fd is None and reactor tries to read.
36a13db Better detection of outbound filtering. Don't reset connection error counters if in proxy mode.
36820b5 Don't die when the first argument to log is not a string.
b577736 Disable auto-account creation in constructor for account creation handler.
c3e62d9 Log tracebacks of file descriptor read/write exceptions when in debug mode.
4a6a215 Call connect instead of reconnect.
3b827f7 Try to work around blocked outbound ports.
567ab04 Try connecting to proxy.floobits.com on port 443 if we have issues connecting directly to floobits.com. Hacky, but it works.
508aae2 Merge pull request #190 from Floobits/abstract-ui
0c95796 change name prompt
f497d04 better UI
65446b1 remove unused comments
d791376 bugs
a0549fe clean up dialogs and fix perms
11efef2 can create workspaces again
7325537 interface problems
c1ec2f3 interface
5732dea Merge commit '90ebbd85ba8189a1e00d89da076355516459ad6f'
4b6bf5c really fix startup for st2
4ce847b Fix imports for Python 3
4ca3d4d resurrect the modal for st. other editors can set expert_mode for now
9d928e6 fix st2 stupidity with no windows existing
a3ada07 merge master
84c636a Replace string interpolation with *args. This should fix many unicode errors when trying to log stuff.
db81bfa Merge commit '185bef543e10c79340d8f97ebc5a511f235a725b'
60cd127 Handle case where buf has become unpopulated since on_load callback was set.
8825e1f fixed workspace windowing
b362885 more cleanup
137c968 cleanup join workspace interface
7a02d93 sharedir implemented
0be0dbb join workspace implemented and used
d36c82a sublime breaks up choices into big/small txt
4e341c3 start of shared ui
5183687 Merge python common. Fix conflicts.
e7460e7 Fix #186. Also fix a bug when uploading changed binary files. Also, use upload rate limiting.
bbc7f48 Python 3 compatible.
8f272f0 move new account popup txt to editor
5f3585c cleanup
48e8b74 fix all references to global editor
598d451 rearrange some logic in create or link.
9626fcf implement open file, use the host in question for linking
38676e1 hook up account creation/linking in emacs
f3db128 remove print
74deaae suggest a sane dir on join and make link work
d466ff4 Bump plugin version. Check floorc.json and migrate if it doesn't exist. Raise ValueError in api.prejoin_workspace if we don't have auth for that workspace URL.
aeb62e6 Merge python common. Fix conflicts.

git-subtree-dir: floo/common
git-subtree-split: 5ed2b150eb12df616a492b9cb53f577dd29ad0b8
Merge python common. Fix conflicts.
Squashed 'floo/common/' changes from 98cc0cf..5ed2b15

5ed2b15 Cleanup. Show port blocked message if we're linking to not-floobits.com.
d107ab8 Add reset_retries. Call it on room_info.
81ea9ae Only use outbound filtering workaround for floobits.com
e8c1a99 No need to remove self from reactor protos. Emit stop when stopping. Don't throw if self.fd is None and reactor tries to read.
36a13db Better detection of outbound filtering. Don't reset connection error counters if in proxy mode.
36820b5 Don't die when the first argument to log is not a string.
b577736 Disable auto-account creation in constructor for account creation handler.
c3e62d9 Log tracebacks of file descriptor read/write exceptions when in debug mode.
4a6a215 Call connect instead of reconnect.
3b827f7 Try to work around blocked outbound ports.
567ab04 Try connecting to proxy.floobits.com on port 443 if we have issues connecting directly to floobits.com. Hacky, but it works.
508aae2 Merge pull request #190 from Floobits/abstract-ui
0c95796 change name prompt
f497d04 better UI
65446b1 remove unused comments
d791376 bugs
a0549fe clean up dialogs and fix perms
11efef2 can create workspaces again
7325537 interface problems
c1ec2f3 interface
5732dea Merge commit '90ebbd85ba8189a1e00d89da076355516459ad6f'
4b6bf5c really fix startup for st2
4ce847b Fix imports for Python 3
4ca3d4d resurrect the modal for st. other editors can set expert_mode for now
9d928e6 fix st2 stupidity with no windows existing
a3ada07 merge master
84c636a Replace string interpolation with *args. This should fix many unicode errors when trying to log stuff.
db81bfa Merge commit '185bef543e10c79340d8f97ebc5a511f235a725b'
60cd127 Handle case where buf has become unpopulated since on_load callback was set.
8825e1f fixed workspace windowing
b362885 more cleanup
137c968 cleanup join workspace interface
7a02d93 sharedir implemented
0be0dbb join workspace implemented and used
d36c82a sublime breaks up choices into big/small txt
4e341c3 start of shared ui
5183687 Merge python common. Fix conflicts.
e7460e7 Fix #186. Also fix a bug when uploading changed binary files. Also, use upload rate limiting.
bbc7f48 Python 3 compatible.
8f272f0 move new account popup txt to editor
5f3585c cleanup
48e8b74 fix all references to global editor
598d451 rearrange some logic in create or link.
9626fcf implement open file, use the host in question for linking
38676e1 hook up account creation/linking in emacs
f3db128 remove print
74deaae suggest a sane dir on join and make link work
d466ff4 Bump plugin version. Check floorc.json and migrate if it doesn't exist. Raise ValueError in api.prejoin_workspace if we don't have auth for that workspace URL.
aeb62e6 Merge python common. Fix conflicts.

git-subtree-dir: floo/common
git-subtree-split: 5ed2b150eb12df616a492b9cb53f577dd29ad0b8
merge
start of new UI
make agent needs a context.  Also, move more stuff into common
cleanup
use save-excursion and widen where appropriate.  need a dir selection utility in the abstract ui
legacy emacs urls and cleanup
fix multiple selection and cleanup
yes y-or-n instead of yes-or-no
move prejoin_workspace to UI out of API
fix stomp_prompt
copy-paste error
Merge port_block_abstract_ui, fix conflicts.
Whoops. Forgot an &rest.
Don't use %s when formatting file names, since names can contain crazy unicode.
Return if user cancels share dir. Print size of buf in bytes.
Fix floo-when-buf macro. (Forgot a with-current-buffer.) Also, only call floo-when-buf once when applying highlights.
Use a variable instead of hard-coding this buffer name in several places