Add skeletal client and api.AddKnownTypes method

Why isn't this part of the constructor?