make Comm's publishing threadsafe
make Comm's publishing threadsafe

If a Comm tries to send a message from another thread,
schedule it to be called ASAP in the main thread
via IOLoop.add_callback

ipython/ipython,ipython/ipython