thin wrapper for middleware with node's http server