Move some of api/http to apiserver.