Add skeletal client and api.AddKnownTypes method

We probably want to expose it and let other source files call it.