Add skeletal client and api.AddKnownTypes method

If we're exposing this method, we'll need a mutex to protect the map, right?