codeintel: oop: queue up things going back to the main process
http://bugs.activestate.com/show_bug.cgi?id=100315
this ensures that we don't race trying to send things back, which could
cause malformed frames.

(integrated from komodo (trunk) change 81919 by marky)

git-svn-id: http://svn.openkomodo.com/repos/openkomodo/trunk@13624 b87d16e7-d29f-4ee1-b5ec-817d645d335f
codeintel: attempt to shutdown more gracefully
http://bugs.activestate.com/show_bug.cgi?id=100315

(integrated from komodo (trunk) change 81920 by marky)

git-svn-id: http://svn.openkomodo.com/repos/openkomodo/trunk@13625 b87d16e7-d29f-4ee1-b5ec-817d645d335f