add initial framework for HTTP API server