Add an api object for the kubelet, and a versioned endpoint.

Closes #2301