codeintel: Refactor worker main
Created by: efritz
Spruce up the setup function for the precise-code-intel worker to make it symmetric to the executor and executor-queue services. Other services will follow. This PR must not be merged before https://github.com/sourcegraph/sourcegraph/pull/15136.