codeintel: correctly unhork database if it's completely hosed
http://bugs.activestate.com/show_bug.cgi?id=100448

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

git-svn-id: http://svn.openkomodo.com/repos/openkomodo/trunk@13915 b87d16e7-d29f-4ee1-b5ec-817d645d335f
codeintel: use observers instead of activate() callback
http://bugs.activestate.com/show_bug.cgi?id=100448

This gets rid of problems in trying to re-init codeintel, as well as
simplifying the multiple window case.

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

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