Add skeletal client and api.AddKnownTypes method

I'm no longer sure I agree with the comment the paul of the past made above.