Refactor kubelet, standalone k8s and integration test to all use the same code.
Merge pull request #2689 from brendandburns/standalone

Refactor kubelet, standalone k8s and integration test to all use the same code.