First attempt at reducing memory usage while copying large files via std...

Reducing memory usage while copying lots of data through stdin. Not quite finished yet!