[liuxia] Move HTTP server to separate namespace. Implement state model on HTTP server.