use cf-errors repository for error definitions

[#45089621]
cf-errors -> errors
Move CC API stubs into Cfoundry for common reuse.

[finishes #44761601]