During resolving a plug-in, set the state of resolved dependencies.
During resolving a plug-in, set the state of resolved dependencies.

When resolving a plug-in, its dependencies are resolved too. We now
immediately set their state to RESOLVED and send the appropriate event.
This seems okay - the OSGi specs state that the framework may try to
resolve plug-ins at any time. This change ensures that resolve events
are fired according to plug-in dependency order. Should fix #127.

laurennlam/CTK,espakm/CTK,151706061/CTK,AndreasFetzer/CTK,espakm/CTK,naucoin/CTK,rkhlebnikov/CTK,msmolens/CTK,AndreasFetzer/CTK,CJGoch/CTK,lassoan/CTK,lassoan/CTK,Heather/CTK,finetjul/CTK,fedorov/CTK,vovythevov/CTK,finetjul/CTK,finetjul/CTK,Sardge/CTK,jcfr/CTK,pieper/CTK,151706061/CTK,laurennlam/CTK,mehrtash/CTK,danielknorr/CTK,151706061/CTK,naucoin/CTK,lassoan/CTK,fedorov/CTK,danielknorr/CTK,ddao/CTK,jcfr/CTK,rkhlebnikov/CTK,SINTEFMedtek/CTK,SINTEFMedtek/CTK,sankhesh/CTK,SINTEFMedtek/CTK,CJGoch/CTK,mehrtash/CTK,sankhesh/CTK,vovythevov/CTK,SINTEFMedtek/CTK,151706061/CTK,Sardge/CTK,rkhlebnikov/CTK,jcfr/CTK,danielknorr/CTK,msmolens/CTK,commontk/CTK,finetjul/CTK,naucoin/CTK,Heather/CTK,sankhesh/CTK,commontk/CTK,sankhesh/CTK,CJGoch/CTK,msmolens/CTK,CJGoch/CTK,SINTEFMedtek/CTK,rkhlebnikov/CTK,laurennlam/CTK,ddao/CTK,Heather/CTK,CJGoch/CTK,naucoin/CTK,ddao/CTK,espakm/CTK,Sardge/CTK,vovythevov/CTK,vovythevov/CTK,ddao/CTK,mehrtash/CTK,fedorov/CTK,pieper/CTK,espakm/CTK,151706061/CTK,laurennlam/CTK,AndreasFetzer/CTK,Sardge/CTK,danielknorr/CTK,pieper/CTK,lassoan/CTK,mehrtash/CTK,pieper/CTK,Heather/CTK,msmolens/CTK,commontk/CTK,AndreasFetzer/CTK,jcfr/CTK,commontk/CTK,fedorov/CTK,jcfr/CTK