Don't strip stdout until needed
Fixed #upload
Added ability to set contents of a file