Optimized Response#outputStream to better handle buffer management and added a warning for deadlocks when used incorrectly