Added waitForFinish() method to CRSpawner class. This fixes a problem with unreliable autostart.  In one example, the main application would try to connect to a crserver and fail because the crserver hadn't yet started (because the CRSpawner thread wasn't done spawning everything). Now call spawner.waitForFinish() after we start it to make sure that everything's up and running before trying to do connections.
Added waitForFinish() method to CRSpawner class.
This fixes a problem with unreliable autostart.  In one example, the
main application would try to connect to a crserver and fail because
the crserver hadn't yet started (because the CRSpawner thread wasn't
done spawning everything).
Now call spawner.waitForFinish() after we start it to make sure that
everything's up and running before trying to do connections.

rpavlik/chromium,rpavlik/chromium,rpavlik/chromium,rpavlik/chromium,rpavlik/chromium