refactor http_server, implement skeleton for rpc_server, implement handler for flags, version info.