Remove the need for tempfiles

Using stdout instead. Faster and safer for multi-user concurrent connections.