Link resolver as a service

The link resolver instance is now injected as a service for easier overwriting from other bundles through for example compiler passes.