A simple http server with an interface based on promises