Socket Buffering

Implement some buffering for crappy connections.