Dynamic Express middleware stack management