Added stream buffer support, future stream resend capability. Other minor changes.