First implementation of basic set of middleware with initial solution for re-piping responses