Move shared functionality to codeintelutils
Created by: efritz
Move common codeintel functionality from internal/code intel into github.com/sourcegraph/codeintelutils. These functions are also used by the precise-code-intel services in the Sourcegraph instance.