Switching from service to types and providers

Step 2:

- add spec tests to verify no breakage (types and providers will be
  copied to agents even when we do not yet use them)