http server with middleware functionality, similar to express.