basic http server based on libevent